Skip to content

Commit 4086680

Browse files
committed
fix
1 parent 6a6716e commit 4086680

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,38 +33,54 @@ 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]
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
49-
typescript: typescript@latest
51+
nodeFlag: 12
52+
typescript: latest
53+
typescriptFlag: latest
5054
- flavor: 3
5155
node: 13
52-
typescript: typescript@latest
56+
nodeFlag: 13
57+
typescript: latest
58+
typescriptFlag: latest
5359
- flavor: 4
5460
node: 13
55-
typescript: [email protected]
61+
nodeFlag: 13
62+
typescript: 2.7
63+
typescriptFlag: 2_7
5664
- flavor: 5
5765
node: 13
58-
typescript: typescript@next
66+
nodeFlag: 13
67+
typescript: next
68+
typescriptFlag: next
5969
- flavor: 6
6070
node: 14
61-
typescript: typescript@latest
71+
nodeFlag: 14
72+
typescript: latest
73+
typescriptFlag: latest
6274
- flavor: 7
6375
node: 14
64-
typescript: [email protected]
76+
nodeFlag: 14
77+
typescript: 2.7
78+
typescriptFlag: 2_7
6579
- flavor: 8
6680
node: 14
67-
typescript: typescript@next
81+
nodeFlag: 14
82+
typescript: next
83+
typescriptFlag: next
6884
steps:
6985
# checkout code
7086
- uses: actions/checkout@v2
@@ -81,23 +97,22 @@ jobs:
8197
with:
8298
name: ts-node-packed.tgz
8399
path: tests/
84-
- run: npm install ${{ matrix.typescript }} --force
100+
- run: npm install typescript@${{ matrix.typescript }} --force
85101
- run: npm run test-cov
86102
- run: npm run coverage-report
87103
if: ${{ always() }}
88104
- name: Codecov
89105
if: ${{ always() }}
90106
uses: codecov/codecov-action@v1
91107
with:
92-
flags: ${{ matrix.os }},node${{ matrix.node }},${{ matrix.typescript }}
108+
flags: ${{ matrix.os }},node_${{ matrix.nodeFlag }},typescript_${{ matrix.typescriptFlag }}
93109
- run: npm run coverage-fix-paths
94110
- run: npm run coverage-report
95111
- name: Coveralls
96112
if: ${{ always() }}
97113
uses: coverallsapp/github-action@master
98114
with:
99115
github-token: ${{ secrets.github_token }}
100-
flag-name: run-${{ matrix.os }}-${{ matrix.flavor }}
101116
parallel: true
102117
finish:
103118
needs: test

0 commit comments

Comments
 (0)