setup typechecking in CI

This commit is contained in:
DaKheera47
2026-01-27 15:10:34 +00:00
parent f92cdbf0df
commit ff822aaf81
2 changed files with 17 additions and 8 deletions
+12 -4
View File
@@ -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 }}
+1
View File
@@ -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",