-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (25 loc) · 719 Bytes
/
test.yml
File metadata and controls
30 lines (25 loc) · 719 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
name: Test
on: [push]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x, 19.x, 20.x, 21.x, 22.x]
pnpm-version: [9.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use pnpm ${{ matrix.pnpm-version }}
uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install node dependencies
run: pnpm install
- name: Run tests
run: pnpm test