Skip to content

Commit 6a97d60

Browse files
committed
ci: run Playwright test suite on PRs and main
Add a Tests workflow that installs deps, installs the Chromium browser, and runs `yarn test` on every pull_request and on push to main. Previously the only CI workflows built the preview/release bundles and never executed the test suite, so regressions could merge unverified. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q1PucHHFUDRRo2g7zC6aLq
1 parent b08f320 commit 6a97d60

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
playwright:
10+
name: Playwright tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
cache: 'yarn'
21+
22+
- name: Install dependencies
23+
run: yarn install --frozen-lockfile
24+
25+
- name: Install Playwright browsers
26+
run: npx playwright install --with-deps chromium
27+
28+
- name: Run Playwright tests
29+
run: yarn test

0 commit comments

Comments
 (0)