Skip to content

Commit 5b0a262

Browse files
committed
Add CI workflow for pull requests
1 parent 90c460f commit 5b0a262

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 8
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: pnpm
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Run build
31+
run: pnpm run build
32+
33+
- name: Run unit tests
34+
run: pnpm test

0 commit comments

Comments
 (0)