Skip to content

Commit 4da07b3

Browse files
committed
add a test workflow
1 parent c2f5dee commit 4da07b3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build_and_test:
10+
runs-on: ubunut-latest
11+
12+
strategy:
13+
fail-fast: false
14+
max-parallel: 4
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Use Node.js (20.x)
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20.x'
24+
cache: 'pnpm'
25+
26+
- name: Install Dependencies
27+
run: pnpm install
28+
29+
- name: Build
30+
run: pnpm run build
31+
32+
- name: Unit Tests
33+
run: pnpm run test

0 commit comments

Comments
 (0)