-
Notifications
You must be signed in to change notification settings - Fork 62
33 lines (26 loc) · 704 Bytes
/
ci.yml
File metadata and controls
33 lines (26 loc) · 704 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
name: CI
on: [pull_request, push]
env:
CI: true
jobs:
test:
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: ["4", "6", "8", "10", "12", "14", "16", "18", "20"]
os: [ubuntu-latest, windows-latest, macos-13]
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set Node.js version
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: node --version
- run: npm --version
- name: Install npm dependencies
run: npm install
- name: Run tests
run: npm test