Merge pull request #84 from mmorerasanchez/docs/architecture-two-repo… #250
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| quality: | |
| name: Build, Type-check & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build (registry + tokens) | |
| run: npm run build | |
| - name: Check generated artifacts are committed (no drift) | |
| run: | | |
| git diff --exit-code -- registry.json "public/r" tokens/design-tokens.json skill/democrito \ | |
| || (echo "::error::Generated artifacts are stale — run 'npm run build' and commit the result." && exit 1) | |
| - name: Type-check | |
| run: npx tsc -p tsconfig.app.json --noEmit | |
| - name: Test | |
| run: npx vitest run |