-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathci-updated.yml
More file actions
108 lines (82 loc) · 2.36 KB
/
ci-updated.yml
File metadata and controls
108 lines (82 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
HUSKY: '0'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- name: Lint
run: npm run lint || echo "::warning::Lint has warnings/errors — see above"
continue-on-error: true
- name: Security audit
run: npm audit --audit-level=high || true
- name: TypeScript check
run: npx tsc --noEmit
- name: Build
run: npm run build
- name: Unit tests with coverage
run: npx vitest run --coverage
- name: Server build
run: npm run build:server
e2e-smoke:
runs-on: ubuntu-latest
needs: build-and-test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps chromium firefox
- name: Build
run: npm run build
- name: E2E smoke tests
run: npx playwright test tests/e2e/smoke-flow.spec.ts tests/e2e/v2-wizard.spec.ts --reporter=list
env:
CI: true
e2e-functional:
runs-on: ubuntu-latest
needs: build-and-test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps chromium
- name: Build
run: npm run build
- name: E2E functional pipeline tests
run: npx playwright test tests/e2e/functional/ --reporter=list --project=chromium
env:
CI: true
continue-on-error: true
- name: E2E workflow tests
run: npx playwright test tests/e2e/functional/wizard-complete-flow.spec.ts --reporter=list --project=chromium
env:
CI: true
continue-on-error: true
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-results
path: |
test-results/
playwright-report/
retention-days: 14