Skip to content

Commit 9e952d5

Browse files
committed
chore: introduce typecheck to ci
1 parent ab8a662 commit 9e952d5

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,25 @@ jobs:
4343
run: pnpm install
4444
- name: Lint JS files
4545
run: pnpm run lint
46+
Typecheck:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Checkout code
50+
uses: actions/checkout@v4
51+
- name: Setup Node
52+
uses: actions/setup-node@v4
53+
with:
54+
node-version: "20"
55+
- name: Restore node_modules cache
56+
uses: actions/cache@v4
57+
with:
58+
path: node_modules
59+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package.json') }}
60+
restore-keys: |
61+
${{ runner.os }}-node-modules
62+
- name: Install pnpm
63+
uses: pnpm/action-setup@v4
64+
- name: Install dependencies
65+
run: pnpm install
66+
- name: Typecheck files
67+
run: pnpm run typecheck

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"vitest": "^3.2.4"
3030
},
3131
"scripts": {
32+
"typecheck": "tsc --noEmit",
3233
"build": "vite build && tsc",
3334
"lint": "prettier --check 'src/**/*'",
3435
"test": "vitest"

0 commit comments

Comments
 (0)