Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Commit a62d0ff

Browse files
committed
Add a workflow to check types and lint
1 parent f02e3da commit a62d0ff

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on: push
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
code-checks:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
version: 9.9.0
18+
run_install: false
19+
- uses: actions/setup-node@v4
20+
with:
21+
cache: pnpm
22+
cache-dependency-path: ./pnpm-lock.yaml
23+
node-version-file: './package.json'
24+
- name: Install dependencies
25+
run: pnpm install
26+
- run: pnpm type-check
27+
- run: pnpm lint

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "vite",
77
"build": "tsc -b && vite build",
8+
"type-check": "tsc --noEmit --incremental --pretty",
89
"lint": "eslint '**/*.{ts,tsx}' --ignore-pattern 'dist/*' --max-warnings=0",
910
"preview": "vite preview"
1011
},

0 commit comments

Comments
 (0)