| 1 | name: Telemetry Stats |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | |
| 6 | permissions: |
| 7 | contents: read |
| 8 | |
| 9 | jobs: |
| 10 | check: |
| 11 | name: Tests, types and bundle check |
| 12 | runs-on: ubuntu-24.04 |
| 13 | timeout-minutes: 15 |
| 14 | steps: |
| 15 | - uses: actions/checkout@v7 |
| 16 | - uses: actions/setup-node@v7.1.0 |
| 17 | with: |
| 18 | node-version: 22 |
| 19 | cache: 'npm' |
| 20 | cache-dependency-path: telemetry-stats/package-lock.json |
| 21 | - name: Install dependencies |
| 22 | run: npm ci |
| 23 | working-directory: telemetry-stats |
| 24 | - name: Run tests |
| 25 | run: npm test |
| 26 | working-directory: telemetry-stats |
| 27 | - name: TypeScript type check |
| 28 | run: npm run typecheck |
| 29 | working-directory: telemetry-stats |
| 30 | - name: Bundle check |
| 31 | run: npm run check |
| 32 | working-directory: telemetry-stats |
| 33 |