Bump braces from 3.0.2 to 3.0.3 #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: 'Playwright E2E' | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
# This is to mock the Google font, which throws an error with this Playwright setup/[email protected] | |
# due to `./.next/static/media directory not existing in dev mode (only exists after running build) | |
# The quick fix was to mock the file(s) to something locally within this repo. | |
env: | |
NEXT_FONT_GOOGLE_MOCKED_RESPONSES: ${{ github.workspace }}/tests/__mocks__/mockFont.js | |
run: npx playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
# directory will be empty if tests pass | |
# https://github.com/microsoft/playwright/issues/10072 | |
path: test-results/ | |
retention-days: 10 |