-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 726 Bytes
/
test.yml
File metadata and controls
30 lines (28 loc) · 726 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: Unit Tests
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Test on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run Tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a yarn test
- name: Run Tests (Windows/Mac)
if: runner.os != 'Linux'
run: yarn test