-
Notifications
You must be signed in to change notification settings - Fork 452
43 lines (37 loc) · 908 Bytes
/
unit-tests.yml
File metadata and controls
43 lines (37 loc) · 908 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
40
41
42
43
---
name: Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- '**'
- '!release-please--**'
jobs:
unit:
name: Unit
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-2025]
node-version: ['20.12.2', '22.x', '24']
exclude:
- os: windows-2025
node-version: '22.x'
fail-fast: false
steps:
- name: Git checkout
uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: npm
check-latest: true
- name: Install core dependencies
run: npm ci --no-audit
- name: Build project
run: npm run build
- name: Run unit tests
run: npm run test:unit -- --coverage