-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (59 loc) · 1.92 KB
/
Copy pathci.yml
File metadata and controls
77 lines (59 loc) · 1.92 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
name: CI
# Validates every pull request and pushes to the default branch by building all
# workspace packages and running their test suites. Browser (karma) tests run
# against the Chromium that puppeteer installs, in headless no-sandbox mode.
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install (single workspace install)
run: npm ci
- name: Build all packages (topological order)
run: npm run build
- name: Test all packages
run: npm run test
- name: Install Playwright (chromium) for the a11y gate
run: npx playwright install --with-deps chromium
- name: Accessibility gate (Storybook + axe, WCAG 2.2 AA)
run: npm run test:a11y
- name: Keyboard-interaction gate (Storybook + Playwright)
run: npm run test:keyboard
security:
name: Security & SBOM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install (single workspace install)
run: npm ci
- name: Vulnerability scan (full, informational)
shell: bash
run: |
echo "::group::All vulnerabilities (production + dev/build tooling)"
npm audit || true
echo "::endgroup::"
- name: Fail on unaccepted vulnerabilities in shipped (production) deps
run: npm run audit:ci
- name: Generate SBOM (CycloneDX, shipped deps)
run: npm run sbom
- name: Upload SBOM artifact
uses: actions/upload-artifact@v4
with:
name: sbom
path: sbom.json