-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (30 loc) · 971 Bytes
/
node.yaml
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
name: Node.js CI
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, macos-14]
node-version: ['18.x']
test-command:
- npm run test-style
- npm run test-types
- npm run test-unit
exclude:
# The `test-style` script is platform-independent, so there is no
# value in executing it in multiple operating systems.
- os: macos-14
test-command: npm run test-style
# The `test-types` script is platform-independent, so there is no
# value in executing it in multiple operating systems.
- os: macos-14
test-command: npm run test-types
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: ${{ matrix.test-command }}