From 5317b42b40410cff11c48e04a6603e35fea6df16 Mon Sep 17 00:00:00 2001 From: resonic-user Date: Mon, 16 Jun 2025 14:47:28 +0000 Subject: [PATCH] v --- .github/workflows/cache-verify.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cache-verify.yml b/.github/workflows/cache-verify.yml index 05d00e5c5..be65958d2 100644 --- a/.github/workflows/cache-verify.yml +++ b/.github/workflows/cache-verify.yml @@ -52,13 +52,15 @@ jobs: with: node-version: '20' - - name: Compute cache key + - name: Compute cache key (unique per run) id: cache-key run: | BACKEND_HASH=$(sha256sum backend/yarn.lock | cut -d' ' -f1) WEBAPP_HASH=$(sha256sum webapp/yarn.lock | cut -d' ' -f1) CYPRESS_HASH=$(sha256sum cypress/yarn.lock | cut -d' ' -f1 2>/dev/null || echo "none") - echo "key=ci-all-cache-${{ runner.os }}-${BACKEND_HASH}-${WEBAPP_HASH}-${CYPRESS_HASH}" >> $GITHUB_OUTPUT + KEY="ci-all-cache-${{ runner.os }}-${BACKEND_HASH}-${WEBAPP_HASH}-${CYPRESS_HASH}-run${{ github.run_id }}" + echo "key=$KEY" + echo "key=$KEY" >> $GITHUB_OUTPUT - name: Restore CI cache id: restore-cache @@ -72,7 +74,6 @@ jobs: key: ${{ steps.cache-key.outputs.key }} restore-keys: | ci-all-cache-${{ runner.os }}- - ci-all-cache- - name: Install backend dependencies if needed run: | @@ -123,6 +124,7 @@ jobs: /opt/cucumber-json-formatter key: ${{ steps.cache-key.outputs.key }} + verify-environment: runs-on: ubuntu-latest needs: [cache-environment]