chore: bump version to 1.3.0 and fix setup-bun action SHA #26
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: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: 1.3.11 | |
| - name: Install | |
| run: bun install --frozen-lockfile | |
| - name: Type check | |
| run: bun run type-check | |
| - name: Test | |
| run: bun test | |
| - name: Build | |
| env: | |
| VITE_WEATHER_API_KEY: dummy_ci_key | |
| run: bun run build | |
| - name: Verify package version parity | |
| run: | | |
| manifest_ver=$(jq -r .version manifest.json) | |
| package_ver=$(jq -r .version package.json) | |
| if [ "$manifest_ver" != "$package_ver" ]; then | |
| echo "Error: Version mismatch! manifest.json is $manifest_ver, package.json is $package_ver" | |
| exit 1 | |
| fi | |
| - name: Verify bundle size budget | |
| run: | | |
| JS_BYTES=$(stat -c%s dist/assets/newtab.js) | |
| echo "Main bundle size: $JS_BYTES bytes" | |
| if [ "$JS_BYTES" -gt 80000 ]; then | |
| echo "Error: Main bundle size exceeds budget of 80KB ($JS_BYTES bytes)" | |
| exit 1 | |
| fi | |
| - name: Lint (Firefox) | |
| run: bun run lint:firefox |