setup typechecking in CI
This commit is contained in:
@@ -2,9 +2,9 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'npm'
|
cache: "npm"
|
||||||
cache-dependency-path: orchestrator/package-lock.json
|
cache-dependency-path: orchestrator/package-lock.json
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -53,15 +53,23 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'npm'
|
cache: "npm"
|
||||||
cache-dependency-path: ${{ matrix.project }}/package-lock.json
|
cache-dependency-path: ${{ matrix.project }}/package-lock.json
|
||||||
|
|
||||||
- name: Build ${{ matrix.project }}
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ matrix.project }}" == extractors/* ]]; then
|
if [[ "${{ matrix.project }}" == extractors/* ]]; then
|
||||||
npm ci --ignore-scripts
|
npm ci --ignore-scripts
|
||||||
else
|
else
|
||||||
npm ci
|
npm ci
|
||||||
fi
|
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 }}
|
working-directory: ${{ matrix.project }}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
"ci": "biome ci",
|
"ci": "biome ci",
|
||||||
"check": "biome check",
|
"check": "biome check",
|
||||||
"check:fix": "biome check --write",
|
"check:fix": "biome check --write",
|
||||||
|
"check:types": "tsc --noEmit",
|
||||||
"format": "biome format",
|
"format": "biome format",
|
||||||
"format:fix": "biome format --write",
|
"format:fix": "biome format --write",
|
||||||
"build": "npm run build:client && npm run build:server",
|
"build": "npm run build:client && npm run build:server",
|
||||||
@@ -90,4 +91,4 @@
|
|||||||
"vite": "^6.0.3",
|
"vite": "^6.0.3",
|
||||||
"vitest": "^4.0.16"
|
"vitest": "^4.0.16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user