Skip to content

Commit 68303ff

Browse files
committed
ci: add github action
1 parent 357bc82 commit 68303ff

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22'
21+
22+
- name: Enable Corepack
23+
run: corepack enable
24+
25+
- name: Set Yarn version
26+
run: corepack prepare [email protected] --activate
27+
28+
- name: Install dependencies
29+
run: yarn install --immutable
30+
31+
- name: Check TypeScript types
32+
run: yarn typecheck
33+
34+
- name: Check Prettier formatting
35+
run: yarn chk
36+
37+
- name: Run tests
38+
run: yarn test

0 commit comments

Comments
 (0)