Skip to content

Commit

Permalink
Cache playwright dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed Jan 22, 2025
1 parent bf50fd1 commit cf93df5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/check-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,18 @@ jobs:
- name: Run unit tests
run: npm test --workspace ${{ env.WORKSPACE }}

- name: Cache Playwright dependencies
id: cache-playwright-deps
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-${{ inputs.package }}-playwright-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-${{ inputs.package }}-playwright-

- name: Install E2E & A11y test dependencies
run: npx --yes playwright install --with-deps
if: inputs.shouldRunIntegrationTests && steps.cache-playwright-deps.outputs.cache-hit != 'true'
run: |
npx --yes playwright install --with-deps
- name: Run CI E2E tests
if: inputs.shouldRunIntegrationTests && inputs.ciTestsOnly
Expand Down

0 comments on commit cf93df5

Please sign in to comment.