setup typechecking in CI
This commit is contained in:
parent
f92cdbf0df
commit
ff822aaf81
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -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 }}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user