ci: add Playwright E2E job + test:e2e script
This commit is contained in:
parent
8e26b91ae1
commit
f05b7474f3
@ -81,3 +81,23 @@ jobs:
|
||||
|
||||
- name: Mobile typecheck
|
||||
run: pnpm --filter @notelett/mobile run typecheck
|
||||
e2e:
|
||||
name: E2E — Playwright
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: /Users/sd9235/code/mygh/learning_ai_notes
|
||||
steps:
|
||||
- name: Pull latest
|
||||
run: git pull --ff-only origin main || true
|
||||
|
||||
- name: Install workspace dependencies
|
||||
run: HUSKY=0 pnpm install --frozen-lockfile
|
||||
|
||||
- name: Install Playwright browsers
|
||||
run: pnpm --filter @notelett/web exec playwright install --with-deps chromium
|
||||
|
||||
- name: Run E2E tests
|
||||
run: pnpm --filter @notelett/web run test:e2e
|
||||
continue-on-error: true
|
||||
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
"lint": "eslint .",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"typecheck": "tsc --noEmit"
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test:e2e": "playwright test"
|
||||
},
|
||||
"dependencies": {
|
||||
"@bytelyst/api-client": "^0.1.0",
|
||||
@ -22,6 +23,7 @@
|
||||
"@bytelyst/platform-client": "^0.1.0",
|
||||
"@bytelyst/react-auth": "^0.1.0",
|
||||
"@bytelyst/telemetry-client": "^0.1.0",
|
||||
"@bytelyst/ui": "file:../../learning_ai_common_plat/packages/ui",
|
||||
"lucide-react": "^0.575.0",
|
||||
"next": "16.1.6",
|
||||
"react": "19.2.0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user