File tree Expand file tree Collapse file tree 4 files changed +103
-54
lines changed Expand file tree Collapse file tree 4 files changed +103
-54
lines changed Original file line number Diff line number Diff line change 1
- coverage
1
+ coverage /
Original file line number Diff line number Diff line change
1
+ name : ' Tests: node.js'
2
+
3
+ on : [pull_request, push]
4
+
5
+ jobs :
6
+ matrix :
7
+ runs-on : ubuntu-latest
8
+ outputs :
9
+ latest : ${{ steps.set-matrix.outputs.requireds }}
10
+ minors : ${{ steps.set-matrix.outputs.optionals }}
11
+ steps :
12
+ - uses : ljharb/actions/node/matrix@main
13
+ id : set-matrix
14
+ with :
15
+ versionsAsRoot : true
16
+ type : majors
17
+ preset : ' >=4'
18
+
19
+ latest :
20
+ needs : [matrix]
21
+ name : ' latest majors'
22
+ runs-on : ubuntu-latest
23
+
24
+ strategy :
25
+ matrix :
26
+ node-version : ${{ fromJson(needs.matrix.outputs.latest) }}
27
+ eslint :
28
+ - 7
29
+ - 6
30
+ - 5
31
+ - 4
32
+ exclude :
33
+ - node-version : 9
34
+ eslint : 7
35
+ - node-version : 8
36
+ eslint : 7
37
+ - node-version : 7
38
+ eslint : 7
39
+ - node-version : 7
40
+ eslint : 6
41
+ - node-version : 6
42
+ eslint : 7
43
+ - node-version : 6
44
+ eslint : 6
45
+ - node-version : 5
46
+ eslint : 7
47
+ - node-version : 5
48
+ eslint : 6
49
+ - node-version : 5
50
+ eslint : 5
51
+ - node-version : 4
52
+ eslint : 7
53
+ - node-version : 4
54
+ eslint : 6
55
+ - node-version : 4
56
+ eslint : 5
57
+
58
+ steps :
59
+ - uses : actions/checkout@v2
60
+ - uses : ljharb/actions/node/run@main
61
+ name : ' npm install && npm run tests-only'
62
+ with :
63
+ after_install : npm install --no-save "eslint@${{ matrix.eslint }}"
64
+ node-version : ${{ matrix.node-version }}
65
+ command : ' unit-test'
66
+ after_success : ' npm run coveralls'
67
+ skip-ls-check : true
68
+
69
+ node :
70
+ name : ' node 4+'
71
+ needs : [latest]
72
+ runs-on : ubuntu-latest
73
+ steps :
74
+ - run : ' echo tests completed'
Original file line number Diff line number Diff line change
1
+ name : ' Tests: pretest/posttest'
2
+
3
+ on : [pull_request, push]
4
+
5
+ jobs :
6
+ pretest :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ - uses : ljharb/actions/node/run@main
12
+ name : ' npm install && npm run pretest'
13
+ with :
14
+ node-version : ' lts/*'
15
+ command : ' pretest'
16
+ skip-ls-check : true
17
+
18
+ posttest :
19
+ runs-on : ubuntu-latest
20
+
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - uses : ljharb/actions/node/run@main
24
+ name : ' npm install && npm run posttest'
25
+ with :
26
+ node-version : ' lts/*'
27
+ command : ' posttest'
28
+ skip-ls-check : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments