Skip to content

Commit

Permalink
Install and cache playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-mk committed Dec 13, 2024
1 parent 26d733b commit 07740c2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/frontend-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,20 @@ jobs:
run: |
npm ci
working-directory: ./frontend
- name: Unit tests
- name: Get Playwright version
working-directory: ./frontend
run: echo "PLAYWRIGHT_VERSION=$(jq -r '.packages["node_modules/@playwright/test"].version' package-lock.json)" >> $GITHUB_ENV
- name: Cache browser binaries
id: cache-browser-binaries
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Install playwright browsers
if: steps.cache-browser-binaries.outputs.cache-hit != 'true'
run: |
npx --yes playwright install
- name: e2e tests
run: |
npm run test:e2e
working-directory: ./frontend
Expand Down

0 comments on commit 07740c2

Please sign in to comment.