From 45078a5e6ba87f7fb90214dfd4b15e166e74b945 Mon Sep 17 00:00:00 2001 From: Hussain Khalil Date: Wed, 9 Oct 2024 14:09:48 -0400 Subject: [PATCH] Add UI typechecking step to ci.yml --- .github/workflows/ci.yml | 16 ++++++++++++++++ packages/ui/package.json | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d03cbe59b0d..e2d1bd208bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,6 +206,22 @@ jobs: - run: yarn --frozen-lockfile - run: yarn workspace @linode/ui run test + typecheck-ui: + runs-on: ubuntu-latest + needs: build-sdk + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20.17" + - uses: actions/cache@v4 + with: + path: | + **/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + - run: yarn --frozen-lockfile + - run: yarn workspace @linode/ui run typecheck + typecheck-manager: runs-on: ubuntu-latest needs: build-sdk diff --git a/packages/ui/package.json b/packages/ui/package.json index ea98b224ce3..ee91f171d29 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -25,7 +25,7 @@ "scripts": { "start": "tsc -w --preserveWatchOutput", "lint": "eslint . --quiet --ext .js,.ts,.tsx", - "typecheck": "tsc --noEmit true --emitDeclarationOnly false", + "typecheck": "tsc", "precommit": "lint-staged", "test": "vitest run", "test:watch": "vitest",