-
-
Notifications
You must be signed in to change notification settings - Fork 29
32 lines (27 loc) · 651 Bytes
/
test.yml
File metadata and controls
32 lines (27 loc) · 651 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
name: Test
on:
- pull_request
- push
jobs:
test:
name: ${{ matrix.os }} / Node.js ${{ matrix.node }} Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [ 18, 20 ]
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
if: steps.node-cache.outputs.cache-hit != 'true'
- name: Test
run: npm test