Skip to content

Commit

Permalink
Add UI typechecking step to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hkhalil-akamai committed Oct 9, 2024
1 parent f805147 commit 45078a5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 45078a5

Please sign in to comment.