-
Notifications
You must be signed in to change notification settings - Fork 148
47 lines (47 loc) · 1.1 KB
/
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
name: CI
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
matrix:
node:
- '17'
- '16'
- '14'
- '12'
- '11'
- '10'
- '9'
- '8'
- '7'
- '6'
name: Test using node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- name: Install Node ${{ matrix.node }}
shell: bash -eo pipefail -l {0}
run: |
nvm install --default ${{ matrix.node }}
if [[ "${{ matrix.node }}" == 0.* ]]; then
npm config set strict-ssl false
fi
dirname "$(nvm which ${{ matrix.node }})" >> "$GITHUB_PATH"
- name: Install
run: |
npm i
node -e 'import(".").catch(() => {});' 2>/dev/null || npm i mocha@~7.1.0
node -e 'const a = {}; const b = {...a};' 2>/dev/null || npm i mocha@~3.5.3 tmp@~0.0.33
- name: Test
run: npm t