Skip to content

Commit b94bf69

Browse files
committed
Use Elixir dependency cache in github actions
1 parent 8c06d24 commit b94bf69

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/publication.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
working-directory: publication
2323
- name: Sleep to await CouchDB startup
2424
run: sleep 15s
25+
- name: Restore dependencies cache
26+
uses: actions/cache@v3
27+
with:
28+
path: deps
29+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
30+
restore-keys: ${{ runner.os }}-mix-
2531
- name: Install Field Publication dependencies and run setup
2632
run: mix setup
2733
working-directory: publication

.github/workflows/server.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
working-directory: server
2323
- name: Sleep to await CouchDB startup
2424
run: sleep 15s
25+
- name: Restore dependencies cache
26+
uses: actions/cache@v3
27+
with:
28+
path: deps
29+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
30+
restore-keys: ${{ runner.os }}-mix-
2531
- name: Install Field Hub dependencies and run setup
2632
run: mix setup
2733
working-directory: server

0 commit comments

Comments
 (0)