-
-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (50 loc) · 1.32 KB
/
test-ci.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# https://help.github.com/en/actions
# https://github.com/actions
# https://github.com/actions/checkout
# https://github.com/actions/setup-node
# No Arm Linux tests yet.
# https://nodejs.org/en/download/releases/
name: Node.js CI on Push
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- 'docs/**'
- 'website/**'
- 'LICENSE'
- '**.md'
- '.gitignore'
- '.npmignore'
- '.vscode/**'
- 'README*'
- 'NOTES.md'
- 'CHANGELOG.md'
jobs:
npm-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# nvm ls-remote --lts
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
os: [ ubuntu-22.04, windows-2022, macos-12 ]
# https://github.com/actions/setup-node
node-version: [ 18, 20 ]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Show node & npm versions, environment
run: |
node --version
npm --version
env
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test