33
33
34
34
test :
35
35
needs : lint-build
36
- name : " Test #${{ matrix.flavor }} : ${{ matrix.os }}, node v ${{ matrix.node }}, ${{ matrix.typescript }}"
37
- runs-on : ${{ matrix.os }}
36
+ name : " Test: ${{ matrix.os }}, node ${{ matrix.node }}, TS ${{ matrix.typescript }}"
37
+ runs-on : ${{ matrix.os }}-latest
38
38
strategy :
39
39
fail-fast : false
40
40
matrix :
@@ -43,31 +43,48 @@ jobs:
43
43
include :
44
44
- flavor : 1
45
45
node : 10
46
- typescript : typescript@latest
46
+ nodeFlag : 10
47
+ typescript : latest
48
+ typescriptFlag : latest
47
49
- flavor : 2
48
50
node : 12.15
49
- typescript : typescript@latest
51
+ nodeFlag : 12_15
52
+ typescript : latest
53
+ typescriptFlag : latest
50
54
- flavor : 3
51
55
node : 12.16
52
- typescript : typescript@latest
56
+ nodeFlag : 12_16
57
+ typescript : latest
58
+ typescriptFlag : latest
53
59
- flavor : 4
54
60
node : 13
55
- typescript : typescript@latest
61
+ typescript : latest
62
+ typescriptFlag : latest
56
63
- flavor : 5
57
64
node : 13
58
- typescript : typescript@2.7
65
+ nodeFlag : 13
66
+ typescript : 2.7
67
+ typescriptFlag : 2_7
59
68
- flavor : 6
60
69
node : 13
61
- typescript : typescript@next
70
+ nodeFlag : 13
71
+ typescript : next
72
+ typescriptFlag : next
62
73
- flavor : 7
63
74
node : 14
64
- typescript : typescript@latest
75
+ nodeFlag : 14
76
+ typescript : latest
77
+ typescriptFlag : latest
65
78
- flavor : 8
66
79
node : 14
67
- typescript : typescript@2.7
80
+ nodeFlag : 14
81
+ typescript : 2.7
82
+ typescriptFlag : 2_7
68
83
- flavor : 9
69
84
node : 14
70
- typescript : typescript@next
85
+ nodeFlag : 14
86
+ typescript : next
87
+ typescriptFlag : next
71
88
steps :
72
89
# checkout code
73
90
- uses : actions/checkout@v2
@@ -84,14 +101,22 @@ jobs:
84
101
with :
85
102
name : ts-node-packed.tgz
86
103
path : tests/
87
- - run : npm install ${{ matrix.typescript }} --force
104
+ - run : npm install typescript@ ${{ matrix.typescript }} --force
88
105
- run : npm run test-cov
106
+ - run : npm run coverage-report
107
+ if : ${{ always() }}
108
+ - name : Codecov
109
+ if : ${{ always() }}
110
+ uses : codecov/codecov-action@v1
111
+ with :
112
+ flags : ${{ matrix.os }},node_${{ matrix.nodeFlag }},typescript_${{ matrix.typescriptFlag }}
113
+ - run : npm run coverage-fix-paths
114
+ - run : npm run coverage-report
89
115
- name : Coveralls
90
116
if : ${{ always() }}
91
117
uses : coverallsapp/github-action@master
92
118
with :
93
119
github-token : ${{ secrets.github_token }}
94
- flag-name : run-${{ matrix.os }}-${{ matrix.flavor }}
95
120
parallel : true
96
121
finish :
97
122
needs : test
0 commit comments