-
Notifications
You must be signed in to change notification settings - Fork 33
44 lines (43 loc) · 1.18 KB
/
test.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
name: Run Tests
on:
workflow_dispatch:
push:
jobs:
test-node:
strategy:
fail-fast: false
matrix:
include:
- version: '0.10.40'
flags: ''
mocha: '3.5.3'
python2: true
- version: '4.9.1'
flags: ''
mocha: '5.2.0'
python2: true
- version: '8.17.0'
flags: '--trace-warnings'
mocha: '7.2.0'
python2: true
- version: '12.22.12'
flags: '--trace-warnings'
mocha: '9.2.2'
python2: false
- version: '20.5.0'
flags: '--pending-deprecation --throw-deprecation --trace-warnings'
mocha: '10.2.0'
python2: false
name: Test on Node v${{ matrix.version }}
runs-on: ubuntu-latest
steps:
- uses: MatteoH2O1999/setup-python@v1
with:
python-version: '2.7'
if: ${{ matrix.python2 }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
- run: (npm install --production && npm install mocha@${{ matrix.mocha }})
- run: node ${{ matrix.flags }} node_modules/mocha/bin/_mocha