Skip to content

Commit

Permalink
cache for dep and _build and separate deps.compile step
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoefmoraes committed Jan 12, 2024
1 parent 89e48c9 commit 921e479
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,22 @@ jobs:
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Deps and _build cache
uses: actions/cache@v3
id: deps-cache
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
- name: Install Dependencies
if: steps.deps-cache.outputs.cache-hit != 'true'
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get --only test
- run: mix deps.compile
if: steps.deps-cache.outputs.cache-hit != 'true'
- run: mix format --check-formatted
if: matrix.check_formatted
- run: mix compile
Expand Down

0 comments on commit 921e479

Please sign in to comment.