mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
34 lines
800 B
YAML
34 lines
800 B
YAML
name: Philomena Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
_build
|
|
deps
|
|
key: ${{ runner.os }}-build-deps-${{ hashFiles('mix.lock') }}
|
|
|
|
- run: docker-compose pull
|
|
|
|
- uses: satackey/action-docker-layer-caching@v0.0.8
|
|
continue-on-error: true
|
|
|
|
- name: Build and test
|
|
run: docker-compose run app run-test
|
|
|
|
- name: Security lint
|
|
run: |
|
|
docker-compose run app mix sobelow --config
|
|
docker-compose run app mix deps.audit
|
|
|
|
- name: Fix permissions
|
|
run: |
|
|
sudo chown -R $(whoami):$(id -ng) deps
|
|
sudo chown -R $(whoami):$(id -ng) _build
|