Skip to content

Commit

Permalink
Add gh action cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rlopzc committed Dec 23, 2023
1 parent 0ea2f69 commit 01c984a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,22 @@ jobs:
otp: '22.0'
steps:
- uses: actions/checkout@v2

- uses: erlef/setup-beam@v1
id: beam
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

- uses: actions/cache@v3
with:
key: ${{ runner.os }}-elixir-${{ steps.beam.outputs.elixir-version }}-erlang-${{ steps.beam.outputs.otp-version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-elixir-${{ steps.beam.outputs.elixir-version }}-erlang-${{ steps.beam.outputs.otp-version }}-
path: |
deps
_build
- run: mix deps.get
- run: mix compile
- run: mix test

0 comments on commit 01c984a

Please sign in to comment.