philomena/.github/workflows/elixir.yml

30 lines
654 B
YAML
Raw Normal View History

name: Philomena Build
2020-11-26 21:23:07 +01:00
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
2020-10-26 22:01:29 +01:00
- 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
2020-10-26 22:01:29 +01:00
- name: Build and test
run: docker-compose run app run-test
- name: Fix permissions
run: |
sudo chown -R $(whoami):$(id -ng) deps
sudo chown -R $(whoami):$(id -ng) _build