Skip to content

Commit 2d1266c

Browse files
author
vtm9
committed
Fix cache
1 parent 4d7913b commit 2d1266c

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/master.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,35 @@ jobs:
3131
ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}
3232
ROLLBAR_USERNAME: ${{ secrets.ROLLBAR_USERNAME }}
3333

34-
- uses: actions/checkout@v2
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Setup Elixir
3540
- uses: erlef/setup-beam@v1
3641
with:
3742
otp-version: "23.x"
3843
elixir-version: "1.11.x"
3944

40-
- uses: actions/cache@v2
45+
- name: Retrieve Cached Dependencies
46+
uses: actions/cache@v2
47+
id: mix-cache
48+
with:
49+
path: |
50+
deps
51+
_build
52+
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('services/app/mix.lock') }}
4153
with:
4254
path: services/app/deps
43-
key: ${{ runner.os }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/services/app/mix.lock')) }}
55+
key: ${{ runner.os }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, 'services/app/mix.lock')) }}
4456
restore-keys: |
4557
${{ runner.os }}-deps-
4658
4759
- uses: actions/cache@v2
4860
with:
4961
path: services/app/_build
50-
key: ${{ runner.os }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/services/app/mix.lock')) }}
62+
key: ${{ runner.os }}-build-${{ hashFiles(format('{0}{1}', github.workspace, 'services/app/mix.lock')) }}
5163
restore-keys: |
5264
${{ runner.os }}-build-
5365

0 commit comments

Comments
 (0)