Skip to content

Commit 56a18d7

Browse files
authored
chore: added ci workflow
1 parent 0c8a539 commit 56a18d7

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on: [push, workflow_call]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
- run: corepack enable
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 22
15+
cache: 'pnpm'
16+
- name: Install dependencies
17+
run: pnpm install
18+
- name: Build
19+
run: pnpm build
20+
- name: Lint
21+
run: pnpm lint
22+
23+
typecheck:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
- run: corepack enable
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: 22
32+
cache: 'pnpm'
33+
- name: Install dependencies
34+
run: pnpm install
35+
- name: Build
36+
run: pnpm build
37+
- name: Type Check
38+
run: pnpm typecheck
39+
40+
tests:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v2
45+
- run: corepack enable
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version: 22
49+
cache: 'pnpm'
50+
- name: Install dependencies
51+
run: pnpm install
52+
- name: Build
53+
run: pnpm build
54+
- name: Test
55+
run: pnpm test

0 commit comments

Comments
 (0)