48
48
yarn upgrade typescript@5.0
49
49
yarn --frozen-lockfile
50
50
yarn type-validate
51
- basic :
51
+ validate-legacy-node :
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - uses : actions/checkout@v4
55
+ - name : Use Node.js
56
+ uses : actions/setup-node@v4
57
+ with :
58
+ node-version : 10.x
59
+ cache : " yarn"
60
+ # Remove `devDependencies` from `package.json` to avoid `yarn install` compatibility error
61
+ - run : node -e "const content = require('./package.json');delete content.devDependencies;require('fs').writeFileSync('package.json', JSON.stringify(content, null, 2));"
62
+ - run : yarn install --production --frozen-lockfile
63
+ types :
52
64
runs-on : ubuntu-latest
53
65
steps :
54
66
- uses : actions/checkout@v4
@@ -60,25 +72,27 @@ jobs:
60
72
- run : yarn --frozen-lockfile
61
73
- run : yarn link --frozen-lockfile || true
62
74
- run : yarn link webpack --frozen-lockfile
63
- - run : yarn test:basic --ci
75
+ - run : yarn cover:types
64
76
- uses : codecov/codecov-action@v5
65
77
with :
66
- flags : basic
67
- functionalities : gcov
78
+ flags : types
79
+ disable_search : true
80
+ files : ./coverage/coverage-types.json
68
81
env :
69
82
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
70
- validate-legacy-node :
83
+ basic :
71
84
runs-on : ubuntu-latest
72
85
steps :
73
86
- uses : actions/checkout@v4
74
87
- name : Use Node.js
75
88
uses : actions/setup-node@v4
76
89
with :
77
- node-version : 10.x
90
+ node-version : lts/*
78
91
cache : " yarn"
79
- # Remove `devDependencies` from `package.json` to avoid `yarn install` compatibility error
80
- - run : node -e "const content = require('./package.json');delete content.devDependencies;require('fs').writeFileSync('package.json', JSON.stringify(content, null, 2));"
81
- - run : yarn install --production --frozen-lockfile
92
+ - run : yarn --frozen-lockfile
93
+ - run : yarn link --frozen-lockfile || true
94
+ - run : yarn link webpack --frozen-lockfile
95
+ - run : yarn test:basic --ci
82
96
unit :
83
97
runs-on : ubuntu-latest
84
98
steps :
@@ -100,7 +114,6 @@ jobs:
100
114
- uses : codecov/codecov-action@v5
101
115
with :
102
116
flags : unit
103
- functionalities : gcov
104
117
env :
105
118
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
106
119
integration :
@@ -191,6 +204,5 @@ jobs:
191
204
- uses : codecov/codecov-action@v5
192
205
with :
193
206
flags : integration
194
- functionalities : gcov
195
207
env :
196
208
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
0 commit comments