| 1 | name: Telemetry Ingest |
| 2 | |
| 3 | # Final validation checks the ingest Worker against its published telemetry |
| 4 | # schema and the client's pinned wire format. |
| 5 | # |
| 6 | # There is deliberately NO deploy job. Publishing this Worker is the owner's |
| 7 | # action, run by hand, and `telemetry_endpoint` stays unset until he has |
| 8 | # deployed and verified. See telemetry-ingest/README.md. |
| 9 | |
| 10 | on: |
| 11 | workflow_dispatch: |
| 12 | |
| 13 | permissions: |
| 14 | contents: read |
| 15 | |
| 16 | jobs: |
| 17 | check: |
| 18 | name: Schema weld, IP guard, and types |
| 19 | runs-on: ubuntu-24.04 |
| 20 | timeout-minutes: 15 |
| 21 | defaults: |
| 22 | run: |
| 23 | working-directory: telemetry-ingest |
| 24 | steps: |
| 25 | - uses: actions/checkout@v7 |
| 26 | - uses: actions/setup-node@v7.1.0 |
| 27 | with: |
| 28 | node-version: 22 |
| 29 | cache: 'npm' |
| 30 | cache-dependency-path: telemetry-ingest/package-lock.json |
| 31 | - name: Install dependencies |
| 32 | run: npm ci |
| 33 | - name: Run tests |
| 34 | run: npm test |
| 35 | - name: TypeScript type check |
| 36 | run: npm run typecheck |
| 37 | - name: Bundle check |
| 38 | # `--dry-run` builds the Worker and resolves its bindings without |
| 39 | # touching a Cloudflare account. It is the step that would have caught |
| 40 | # the entrypoint exporting a non-callable named export. |
| 41 | run: npm run check |
| 42 |