-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.2 KB
/
Copy pathdocs-integrity.yml
File metadata and controls
40 lines (36 loc) · 1.2 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
name: Docs integrity
# Guards the decision model: the math must be correct, every document must agree, and the
# implemented app config (src/config) must mirror the docs. Runs when the model docs, the
# app config, or the scripts change. The full application CI (lint/test/build) is in ci.yml.
on:
push:
paths:
- 'docs/03-blueprint/**'
- 'docs/02-requirement-analysis/**'
- 'docs/specs/**'
- 'src/config/**'
- 'scripts/**'
- '.github/workflows/docs-integrity.yml'
pull_request:
paths:
- 'docs/03-blueprint/**'
- 'docs/02-requirement-analysis/**'
- 'docs/specs/**'
- 'src/config/**'
- 'scripts/**'
permissions:
contents: read
jobs:
model:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
- name: Verify the scoring model (fixtures, preset targets + margins, rounding, properties)
run: node scripts/verify-model.mjs
- name: Cross-check the documents for mismatches
run: node scripts/cross-check-docs.mjs
- name: Check the app config mirrors the model
run: node scripts/check-app-config.mjs