fix flaky test with HMR console #287
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: Run E2E tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 # respects packageManager in package.json | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm build | |
- run: pnpm test:format | |
- run: pnpm playwright install --with-deps | |
- run: pnpm test || exit 1 | |
- name: Upload test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playwright-report | |
path: playwright-report.json |