Skip to content

Commit

Permalink
ci: caches deps and build when possible (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy authored Jun 6, 2024
1 parent 153de9e commit b09911a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
erlang: '23.3.4.20'
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: ${{ ! matrix.lint }}
with:
path: |
_build
deps
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.erlang }}
Expand All @@ -33,7 +40,8 @@ jobs:
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix deps.compile
- run: mix compile
if: ${{ ! matrix.lint }}
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test

0 comments on commit b09911a

Please sign in to comment.