Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Key Playwright browser cache on Playwright version
Rūdolfs Ošiņš committed 7 days ago
commit c45c9198261f26daa1fc64dbb61ff70c259ebe4f
parent b2f74eb
1 file changed +5 -1
modified .github/workflows/check-visual.yml
@@ -35,12 +35,16 @@ jobs:
      - name: Install dependencies
        run: npm ci

+
      - name: Get installed Playwright version
+
        id: playwright-version
+
        run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
+

      - name: Cache Playwright browsers
        uses: actions/cache@v5
        id: playwright-dep-cache
        with:
          path: ~/.cache/ms-playwright
-
          key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
+
          key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}

      - name: Cache Playwright visual snapshots
        uses: actions/cache@v5