From 01c984abc8d05cd038a34af82503cfa55426a036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romario=20L=C3=B3pez?= Date: Fri, 22 Dec 2023 18:36:44 -0600 Subject: [PATCH] Add gh action cache --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53b9897..5881c00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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