WIP #15
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] | |
| jobs: | |
| check: | |
| name: typecheck + unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| # better-sqlite3 needs build tools; ubuntu-latest has them via | |
| # build-essential by default. | |
| - run: npm ci | |
| - name: Rebuild native modules for system Node | |
| run: npm run rebuild:node | |
| - name: Typecheck (main + renderer) | |
| run: npm run typecheck | |
| - name: Unit tests | |
| run: npm run test:unit | |
| - name: Production build (all bundles) | |
| run: npm run build |