From 9f6848f1abf803948d0b3a0fe88deb4182e371b8 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 25 May 2026 09:54:19 +0300 Subject: [PATCH] Fix gh actions to use mise lock as cache key --- .github/workflows/test_and_deploy.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 21823605..17df5a8d 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -38,18 +38,18 @@ jobs: cache-name: cache-elixir-deps with: path: deps - key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}- + ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}- - name: Cache compiled build uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 env: cache-name: cache-compiled-build-lint with: path: _build - key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}- + ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}- ${{ runner.os }}-mix-${{ env.cache-name }}- - name: Clean to rule out incremental build as a source of flakiness if: github.run_attempt != '1' @@ -115,18 +115,18 @@ jobs: cache-name: cache-elixir-deps with: path: deps - key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}- + ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}- - name: Cache compiled build uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 env: cache-name: cache-compiled-build-test with: path: _build - key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('.tool-versions') }}- + ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('mise.lock') }}- ${{ runner.os }}-mix-${{ env.cache-name }}- - name: Clean to rule out incremental build as a source of flakiness if: github.run_attempt != '1'