@@ -33,41 +33,58 @@ jobs:
3333
3434 test :
3535 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
3838 strategy :
3939 fail-fast : false
4040 matrix :
41- os : [ubuntu-latest , windows-latest ]
41+ os : [ubuntu, windows]
4242 flavor : [1, 2, 3, 4, 5, 6, 7, 8, 9]
4343 include :
4444 - flavor : 1
4545 node : 10
46- typescript : typescript@latest
46+ nodeFlag : 10
47+ typescript : latest
48+ typescriptFlag : latest
4749 - flavor : 2
4850 node : 12.15
49- typescript : typescript@latest
51+ nodeFlag : 12_15
52+ typescript : latest
53+ typescriptFlag : latest
5054 - flavor : 3
5155 node : 12.16
52- typescript : typescript@latest
56+ nodeFlag : 12_16
57+ typescript : latest
58+ typescriptFlag : latest
5359 - flavor : 4
5460 node : 13
55- typescript : typescript@latest
61+ typescript : latest
62+ typescriptFlag : latest
5663 - flavor : 5
5764 node : 13
58- 65+ nodeFlag : 13
66+ typescript : 2.7
67+ typescriptFlag : 2_7
5968 - flavor : 6
6069 node : 13
61- typescript : typescript@next
70+ nodeFlag : 13
71+ typescript : next
72+ typescriptFlag : next
6273 - flavor : 7
6374 node : 14
64- typescript : typescript@latest
75+ nodeFlag : 14
76+ typescript : latest
77+ typescriptFlag : latest
6578 - flavor : 8
6679 node : 14
67- 80+ nodeFlag : 14
81+ typescript : 2.7
82+ typescriptFlag : 2_7
6883 - flavor : 9
6984 node : 14
70- typescript : typescript@next
85+ nodeFlag : 14
86+ typescript : next
87+ typescriptFlag : next
7188 steps :
7289 # checkout code
7390 - uses : actions/checkout@v2
@@ -84,14 +101,22 @@ jobs:
84101 with :
85102 name : ts-node-packed.tgz
86103 path : tests/
87- - run : npm install ${{ matrix.typescript }} --force
104+ - run : npm install typescript@ ${{ matrix.typescript }} --force
88105 - 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
89115 - name : Coveralls
90116 if : ${{ always() }}
91117 uses : coverallsapp/github-action@master
92118 with :
93119 github-token : ${{ secrets.github_token }}
94- flag-name : run-${{ matrix.os }}-${{ matrix.flavor }}
95120 parallel : true
96121 finish :
97122 needs : test
0 commit comments