release: v0.9.0 — incremental parsing, honest failure states, i18n, r… #29
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 | |
| # Runs on every push / PR to main. Fast checks (lint, typecheck, build) so | |
| # pull requests surface problems before merge. Windows-specific packaging is | |
| # handled by the release workflow when a version tag is pushed. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install deps | |
| # `npm install` rather than `npm ci` because sharp's optional Linux | |
| # prebuilts (@emnapi/runtime, libvips musl variants) aren't always | |
| # captured in a Windows-generated lockfile. postinstall still runs | |
| # patch-package against ccusage. | |
| run: npm install --no-audit --no-fund | |
| - name: Lint (Biome) | |
| run: npm run lint | |
| - name: Format check (Biome) | |
| run: npm run format:check | |
| - name: Type check | |
| run: npm run type-check | |
| - name: Unit tests (Vitest) | |
| run: npm test | |
| - name: Build renderer + main | |
| run: npm run build | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install deps | |
| run: npm install --no-audit --no-fund | |
| - name: Audit production dependencies | |
| run: npm audit --omit=dev --audit-level=moderate | |
| continue-on-error: true |