chore: stop publishing local dev config, and widen the env ignore rule #33
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: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| pkg: [api, web] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Install | |
| run: npm ci || npm install | |
| working-directory: ${{ matrix.pkg }} | |
| - name: Typecheck | |
| run: npx tsc --noEmit || npx tsc -b | |
| working-directory: ${{ matrix.pkg }} | |
| - name: Test (api only) | |
| if: matrix.pkg == 'api' | |
| run: npm test | |
| working-directory: api | |
| env: | |
| DB_PATH: ./data/test.db | |
| - name: Build (web only) | |
| if: matrix.pkg == 'web' | |
| run: npm run build | |
| working-directory: web |