Skip to content

Bump next from 14.1.1 to 14.2.10 #79

Bump next from 14.1.1 to 14.2.10

Bump next from 14.1.1 to 14.2.10 #79

Workflow file for this run

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