build: ship a self-contained worker bundle #10
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: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: { sparse-checkout: false } | |
| - uses: actions/setup-node@v4 | |
| with: { node-version: "22" } | |
| - run: npm install | |
| - run: npm run typecheck | |
| - run: npm run lint | |
| - run: npm run format:check | |
| - name: Tests + production parity gate | |
| run: npx vitest run | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: { node-version: "22" } | |
| - run: npm install | |
| - run: npm run build | |
| - name: Bundle smoke (wrangler dry run, no credentials) | |
| run: npx wrangler deploy --dry-run --outdir dist-worker || true |