mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
improve execution time for github test workflow
This commit is contained in:
parent
b79f07b86d
commit
13891b7d18
1 changed files with 18 additions and 0 deletions
18
.github/workflows/elixir.yml
vendored
18
.github/workflows/elixir.yml
vendored
|
@ -7,5 +7,23 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Build and test
|
||||||
run: docker-compose run app run-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
|
||||||
|
|
Loading…
Reference in a new issue