Skip to content

Commit 44768a0

Browse files
committed
add ci workflow
1 parent 7b47998 commit 44768a0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches: ['main']
5+
jobs:
6+
lint-and-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Code
10+
uses: actions/checkout@v4
11+
- name: Setup PNPM
12+
uses: pnpm/action-setup@v4
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
cache: 'pnpm'
17+
node-version-file: '.nvmrc'
18+
- name: Install dependencies
19+
run: pnpm install --frozen-lockfile
20+
- name: Lint
21+
run: pnpm lint
22+
- name: Test
23+
run: pnpm test

0 commit comments

Comments
 (0)