Skip to content

Commit 20a2e98

Browse files
committed
ci: add lint & typecheck
1 parent 0c1d277 commit 20a2e98

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: pnpm/action-setup@v2
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: lts/*
21+
cache: pnpm
22+
23+
- name: Install
24+
run: pnpm install
25+
26+
- name: Lint
27+
run: pnpm run lint
28+
29+
typecheck:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: pnpm/action-setup@v2
34+
- uses: actions/setup-node@v3
35+
with:
36+
node-version: lts/*
37+
cache: pnpm
38+
39+
- name: Install
40+
run: pnpm install
41+
42+
- name: Typecheck
43+
run: pnpm run typecheck

0 commit comments

Comments
 (0)