diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 687050f..e0fd85b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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