Skip to content

Commit f9e8250

Browse files
committed
Add test workflow
1 parent 0f04998 commit f9e8250

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
lint:
11+
name: Lint
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Checkout repository

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test on ${{ matrix.os }} using Node.js v${{ matrix.node }}
12+
strategy:
13+
matrix:
14+
os: [windows-latest, macos-latest, ubuntu-latest]
15+
# This should also include Node.js v20, but snapshot testing is only
16+
# available in Node.js v22.3 or later.
17+
node: [22, 24]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v5
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v5
24+
with:
25+
node-version: ${{ matrix.node }}
26+
package-manager-cache: false
27+
- name: Setup pnpm
28+
uses: pnpm/action-setup@v4
29+
with:
30+
version: latest
31+
run_install: true
32+
- name: Run tests
33+
run: pnpm test

0 commit comments

Comments
 (0)