Skip to content

Commit 1797c73

Browse files
authored
ci: add type checks (#11)
1 parent 4831061 commit 1797c73

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/type-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Type Check
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
type-check:
14+
name: TypeScript Type Check
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
20+
- name: Setup
21+
uses: ./.github/actions/setup
22+
23+
- name: Run type check
24+
run: pnpm type-check

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"start": "next start",
1010
"lint": "biome check",
1111
"format": "biome format --write",
12-
"test": "vitest"
12+
"test": "vitest",
13+
"type-check": "tsc --noEmit"
1314
},
1415
"dependencies": {
1516
"next": "16.0.2",

0 commit comments

Comments
 (0)