-
-
Notifications
You must be signed in to change notification settings - Fork 73
39 lines (32 loc) · 776 Bytes
/
test.yml
File metadata and controls
39 lines (32 loc) · 776 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
38
39
name: Unit tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
steps:
- uses: actions/checkout@v6
with:
lfs: true
- uses: pnpm/action-setup@v5.0.0
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm run build
- name: Run unit tests
run: pnpm run test
- uses: actions/upload-artifact@v7
if: failure()
with:
name: image-diffs
path: packages/**/__image_snapshots__/__diff_output__/