From 4a021a3f819559105c3d148eeea23900c47404a6 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Tue, 9 Apr 2024 13:46:55 +0200 Subject: [PATCH] Install missing dependencies and split typecheck into separate steps --- .github/workflows/check.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 306f7bb2..ba90edaa 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -27,12 +27,25 @@ jobs: - name: Install dependencies run: yarn install --immutable - - name: Typecheck - run: | - yarn tsc --project tsconfig.json --noEmit - yarn tsc --project parser/tsconfig.json --noEmit - yarn tsc --project example/tsconfig.json --noEmit - yarn tsc --project WebExample/tsconfig.json --noEmit + - name: Install parser dependencies + working-directory: parser + run: npm ci + + - name: Install WebExample dependencies + working-directory: WebExample + run: npm ci + + - name: Typecheck library + run: yarn tsc --project tsconfig.json --noEmit + + - name: Typecheck parser + run: yarn tsc --project parser/tsconfig.json --noEmit + + - name: Typecheck example app + run: yarn tsc --project example/tsconfig.json --noEmit + + - name: Typecheck WebExample app + run: yarn tsc --project WebExample/tsconfig.json --noEmit - name: Lint run: yarn lint