Skip to content

Commit

Permalink
Check locked deps in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Dec 8, 2023
1 parent 2772c45 commit 0b610e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ jobs:
_build
key: ${{ runner.os }}-mix-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}

- name: Install and compile dependencies
- name: Fetch dependencies and verify mix.lock
if: steps.cache-deps.outputs.cache-hit != 'true'
run: mix do deps.get --only test, deps.compile
run: mix deps.get --check-locked

- name: Compile dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: mix deps.compile

# Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
# Cache key based on Elixir & Erlang version (also useful when running in matrix)
Expand Down

0 comments on commit 0b610e5

Please sign in to comment.