Merge pull request #64 from programmerShinobi/feat/phase3-chat-advisor #113
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |