From d4c83c0d27017f6b4835e9907e504c952e437fa5 Mon Sep 17 00:00:00 2001 From: Bart Stefanski Date: Fri, 29 Dec 2023 18:39:38 +0100 Subject: [PATCH] fix: make cache keys unique for each workflow --- .github/workflows/check.yml | 2 +- .github/workflows/nextjs_bundle_analysis.yml | 2 +- .github/workflows/playwright.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index da068c10..0521c4ff 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/cache@v2 with: path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-check-modules-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies run: yarn install --frozen-lockfile --prefer-offline diff --git a/.github/workflows/nextjs_bundle_analysis.yml b/.github/workflows/nextjs_bundle_analysis.yml index 5d586a55..d560f82a 100644 --- a/.github/workflows/nextjs_bundle_analysis.yml +++ b/.github/workflows/nextjs_bundle_analysis.yml @@ -35,7 +35,7 @@ jobs: - uses: actions/cache@v2 with: path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-bundle-modules-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies run: yarn install --frozen-lockfile --prefer-offline diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index fee6f165..2ad72104 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/cache@v2 with: path: "**/node_modules" - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-playwright-modules-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies run: yarn install --frozen-lockfile --prefer-offline