feat: add Playwright E2E testing framework

Add @playwright/test, playwright.config.ts, e2e/ smoke test,
and e2e CI job (Chromium-only) that gates build-and-push.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Stockboy Steve
2026-03-30 18:47:55 +00:00
parent 835aff3522
commit c62a151210
4 changed files with 42 additions and 3 deletions
+14 -2
View File
@@ -46,9 +46,21 @@ jobs:
- name: Run tests
run: npx vitest run
e2e:
runs-on: runners-cartsnitch
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npx playwright test
build-and-push:
runs-on: runners-cartsnitch
needs: [lint, test]
needs: [lint, test, e2e]
outputs:
calver_tag: ${{ steps.calver.outputs.version }}
steps:
@@ -110,7 +122,7 @@ jobs:
build-and-push-auth:
runs-on: runners-cartsnitch
needs: [lint, test]
needs: [lint, test, e2e]
outputs:
calver_tag: ${{ steps.calver.outputs.version }}
steps: