Skip to content

Commit cb917a5

Browse files
committed
ci: web checks run the component and browser e2e suites
1 parent 4606561 commit cb917a5

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/web-tests.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Web Checks
22

3-
# Type-checks the Nuxt frontend and runs the API-contract test. Both guard against
4-
# frontend/backend drift (wrong API path or param name) that is invisible to `nuxt build`.
3+
# Type-checks the Nuxt frontend, runs the API-contract test, the component suite, and the browser
4+
# e2e golden flows against the built app. Together they guard against frontend/backend drift and
5+
# behavioural regressions that are invisible to `nuxt build`.
56
# Triggered by web changes and by changes to the OpenAPI spec the client is generated from.
67
on:
78
push:
@@ -38,3 +39,15 @@ jobs:
3839

3940
- name: API contract test
4041
run: npm test
42+
43+
- name: Component tests
44+
run: npm run test:component
45+
46+
- name: Build app for e2e
47+
run: npm run build
48+
49+
- name: Install Playwright browser
50+
run: npx playwright install --with-deps chromium
51+
52+
- name: Browser e2e flows
53+
run: npm run test:e2e

0 commit comments

Comments
 (0)