forked from veridatum-labs/earnproof-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (83 loc) · 2.56 KB
/
Copy pathci.yml
File metadata and controls
87 lines (83 loc) · 2.56 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
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run test -- --runInBand
- run: npm run test:contracts
- run: npm run audit:browser-apis
- run: npm run validate:production
- run: npm run check:doc-freshness
- run: npm run build
visual-regression:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- name: Run accessibility scans (axe + keyboard)
run: npm run test:e2e:a11y
env:
CI: true
- name: Upload accessibility report
if: failure()
uses: actions/upload-artifact@v4
with:
name: accessibility-report
path: playwright-report/
- run: npm run build
- name: Run visual regression suite
run: npm run test:e2e:visual
- name: Upload visual diff artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: visual-regression-report
# Fixtures are 100% synthetic (see e2e/visual/fixtures) — never
# real user data, wallets, or credentials — so this artifact is
# safe to retain for triage.
path: |
e2e/visual/.report
e2e/visual/.test-results
include-hidden-files: true
retention-days: 14
- name: Check route performance budgets
run: node scripts/performance/check-budgets.js
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run test:e2e
env:
CI: true
# Fixture data is synthetic (no real wallet secrets or live network
# calls), and the Playwright config only keeps traces/screenshots for
# failing tests, so nothing sensitive should ever land here — this
# upload exists purely to help diagnose a failing run.
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 7