Skip to content

Commit

Permalink
fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetised committed Nov 6, 2024
1 parent 4e35a64 commit 5fc8caf
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/elixir_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
version-file: ".tool-versions"

- name: Restore dependencies cache
uses: actions/cache@v3
uses: actions/cache/restore@v4
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }}
Expand All @@ -44,6 +44,13 @@ jobs:
- name: Install dependencies
run: mix deps.get && mix deps.compile

- name: Cache dependencies
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }}
restore-keys: ${{ runner.os }}-mix-

- name: Save compiled code
uses: actions/cache/save@v4
with:
Expand All @@ -66,11 +73,11 @@ jobs:
with:
version-type: strict
version-file: ".tool-versions"
- name: Cache dependencies
id: cache-deps
uses: actions/cache@v4
- name: Restore dependencies cache
uses: actions/cache/restore@v4
with:
path: deps
key: ${{ runner.os }}-mixdeps-${{ hashFiles('mix.lock') }}
key: ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- run: mix deps.get
- run: mix format --check-formatted

0 comments on commit 5fc8caf

Please sign in to comment.