Merge pull request #56 from ondata/fix/pr55-followup-comments #6
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: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Type check | |
| run: NODE_OPTIONS="--max-old-space-size=4096" npx tsc --noEmit | |
| - name: Deterministic tests (no live SPARQL) | |
| run: npm test -- --run --exclude src/tools/tools.test.ts --exclude src/tools/sparql.test.ts | |
| live_integration: | |
| if: github.event_name == 'pull_request' | |
| needs: ci | |
| continue-on-error: true | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 35 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Live integration tests (Camera/Senato endpoints) | |
| run: npm test -- --run src/tools/sparql.test.ts src/tools/tools.test.ts |