diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index 0893ef1f5b..be5522f39a 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -713,9 +713,19 @@ jobs: invoke dev.setup-test -iv invoke int.rebuild-thumbnails - name: Install dependencies - run: | - invoke int.frontend-compile --extract - cd src/frontend && npx playwright install --with-deps + run: invoke int.frontend-compile --extract + - name: Cache Playwright browsers + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # pin@v4.3.0 + id: playwright-cache + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('src/frontend/yarn.lock') }} + - name: Install Playwright browsers + if: steps.playwright-cache.outputs.cache-hit != 'true' + run: cd src/frontend && npx playwright install --with-deps + - name: Install Playwright OS dependencies + if: steps.playwright-cache.outputs.cache-hit == 'true' + run: cd src/frontend && npx playwright install-deps - name: Run Playwright tests id: tests run: |