setup typechecking in CI
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user