-
-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (38 loc) · 1.16 KB
/
tests.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
name: Tests
on:
pull_request:
push:
branches:
- main
paths:
- packages/**
jobs:
test:
name: Test on ${{ matrix.platform }} with Node v${{ matrix.node-version }}
runs-on: ${{ matrix.platform }}
strategy:
matrix:
node-version: [20, 22]
platform: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9.12.3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Run Tests
run: pnpm test
- name: Lint
run: pnpm lint