Skip to content

Commit 7b9f365

Browse files
committed
ci: add E2E test job using workos emulator
Runs Playwright E2E tests against the Next.js example app with the WorkOS emulator on every push/PR. Uploads test results as artifacts on failure.
1 parent adede45 commit 7b9f365

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,34 @@ jobs:
4242

4343
- name: Test
4444
run: pnpm run test
45+
46+
e2e:
47+
name: E2E Tests
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v6
51+
- uses: pnpm/action-setup@v4
52+
- uses: actions/setup-node@v6
53+
with:
54+
node-version: 22
55+
cache: 'pnpm'
56+
57+
- name: Install Dependencies
58+
run: pnpm install
59+
60+
- name: Install Playwright Browsers
61+
run: pnpm --filter e2e-tests exec playwright install chromium
62+
63+
- name: Build Library
64+
run: pnpm run build
65+
66+
- name: Run E2E Tests
67+
run: pnpm run test:e2e:next
68+
69+
- name: Upload Test Results
70+
if: always()
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: e2e-test-results
74+
path: e2e/test-results/
75+
retention-days: 7

0 commit comments

Comments
 (0)