Repository navigation
ci(workflow): add stats validation workflow and schema checks #1
Workflow file for this run
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: Validate Stats PR | |
| on: | |
| pull_request: | |
| paths: | |
| - 'packages/starter-*/ci-stats.json' | |
| - 'packages/starter-*/stats/**' | |
| - 'packages/app-*/ci-stats.json' | |
| - 'packages/app-*/stats/**' | |
| - 'packages/docs/src/content/devtime/**' | |
| - 'packages/docs/src/content/runtime/**' | |
| - 'packages/stats-generator/**' | |
| - '.github/workflows/validate-stats-pr.yml' | |
| jobs: | |
| validate-stats-json: | |
| runs-on: depot-ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - name: Install workspace dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run test suite | |
| run: pnpm --filter @framework-tracker/stats-generator test | |
| - name: Validate stats JSON files | |
| run: pnpm --filter @framework-tracker/stats-generator validate:json |