From 4dd830e546019e3c2db9d72c1f08f4a5ff172864 Mon Sep 17 00:00:00 2001 From: parroty Date: Wed, 10 May 2023 22:03:46 +0900 Subject: [PATCH 1/2] Fix workflow cache to consider otp/elixir versions --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 84e18e0..8577a6c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,9 +26,9 @@ jobs: path: | deps _build - key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix- + ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix- - run: mix deps.get - uses: nick-invision/retry@v2 with: From 4b6979dfa380c9d9b94a3ebf16796908c13ac450 Mon Sep 17 00:00:00 2001 From: parroty Date: Wed, 10 May 2023 22:10:07 +0900 Subject: [PATCH 2/2] Update action-versions --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8577a6c..765c54f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,12 +16,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GLOBAL_MOCK: ${{ matrix.global-mock }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: erlef/setup-beam@v1 with: otp-version: ${{ matrix.otp }} elixir-version: ${{ matrix.elixir }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | deps