ci: a green deploy check that deployed nothing is a false report (BRO… #22
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: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| name: lint / test / demo | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Install | |
| run: bun install | |
| - name: Lint | |
| run: bun run lint | |
| - name: Typecheck | |
| # bun test does NOT typecheck. This suite went 175-green with a real TS | |
| # error present, and a top-level-await module marker slipped through the | |
| # same way. tsc runs as its own step so the failure is its own line. | |
| run: bunx tsc --noEmit | |
| - name: Test | |
| run: bun test | |
| - name: Demo smoke test | |
| run: bun run demo |