style: apply biome formatter (single-line string literals) #3
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 | |
| # postinstall applies patches/ccusage+*.patch. | |
| run: npm ci | |
| - 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: 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 ci | |
| - name: Audit production dependencies | |
| run: npm audit --omit=dev --audit-level=moderate | |
| continue-on-error: true |