-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathci.yaml
More file actions
37 lines (30 loc) · 906 Bytes
/
ci.yaml
File metadata and controls
37 lines (30 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build-and-test:
name: Build & Unit Tests (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v5
- name: ⎔ Setup node
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- name: ⎔ Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10.14.0
- name: 📥 Download deps
run: pnpm install
- name: 🔨 Build
run: pnpm build
- name: 🧪 Run unit tests
run: pnpm vitest run tests/unit/