diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23f4fee..c4733ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} @@ -32,7 +32,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: 'npm' + cache: "npm" cache-dependency-path: orchestrator/package-lock.json - name: Install dependencies run: npm ci @@ -53,15 +53,23 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: 'npm' + cache: "npm" cache-dependency-path: ${{ matrix.project }}/package-lock.json - - - name: Build ${{ matrix.project }} + + - name: Install dependencies run: | if [[ "${{ matrix.project }}" == extractors/* ]]; then npm ci --ignore-scripts else npm ci fi - npm run build + working-directory: ${{ matrix.project }} + + - name: Type Check (orchestrator only) + if: matrix.project == 'orchestrator' + run: npm run check:types + working-directory: ${{ matrix.project }} + + - name: Build ${{ matrix.project }} + run: npm run build working-directory: ${{ matrix.project }} diff --git a/orchestrator/package.json b/orchestrator/package.json index 5af6628..cee3447 100644 --- a/orchestrator/package.json +++ b/orchestrator/package.json @@ -11,6 +11,7 @@ "ci": "biome ci", "check": "biome check", "check:fix": "biome check --write", + "check:types": "tsc --noEmit", "format": "biome format", "format:fix": "biome format --write", "build": "npm run build:client && npm run build:server", @@ -90,4 +91,4 @@ "vite": "^6.0.3", "vitest": "^4.0.16" } -} +} \ No newline at end of file