-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.5 KB
/
Copy pathci.yml
File metadata and controls
58 lines (56 loc) · 1.5 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
name: CI
on:
push:
branches: [main]
paths:
- 'src/**'
- 'content/**'
- 'scripts/**'
- 'index.html'
- 'package.json'
- 'package-lock.json'
- 'tsconfig*.json'
- 'vite.config.ts'
- 'tailwind.config.js'
- 'postcss.config.js'
- 'eslint.config.js'
- '.github/workflows/ci.yml'
pull_request:
paths:
- 'src/**'
- 'content/**'
- 'scripts/**'
- 'index.html'
- 'package.json'
- 'package-lock.json'
- 'tsconfig*.json'
- 'vite.config.ts'
- 'tailwind.config.js'
- 'postcss.config.js'
- 'eslint.config.js'
- '.github/workflows/ci.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install dependencies
run: npm ci
- name: Check the app config mirrors the model (no drift from the docs)
run: node scripts/check-app-config.mjs
- name: Validate content (schema + primary sources + related_advisor ↔ frozen model)
run: npm run content:validate
- name: Lint
run: npm run lint
- name: Unit tests (scoring engine + exporters)
run: npm run test
- name: Production build
run: npm run build
- name: Bundle-size budget (gzip JS/CSS)
run: npm run size
- name: Audit production dependencies (high/critical)
run: npm run audit:prod