File tree 2 files changed +18
-5
lines changed
2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 20
20
- run : npm ci
21
21
- run : npm run test-lint
22
22
- run : npm run test-system
23
- - run : npm run test-unit
24
-
23
+ - run : npm run test-unit | tee coverage.txt && exit ${PIPESTATUS[0]}
24
+ - name : Upload coverage-summary.json
25
+ uses : actions/upload-artifact@v4
26
+ with :
27
+ name : coverage-summary-unit
28
+ path : |
29
+ .coverage/coverage-summary.json
30
+ coverage.txt
25
31
Regression :
26
32
needs : Unit-Tests
27
33
runs-on : ubuntu-latest
35
41
with :
36
42
node-version : ${{ matrix.node-version }}
37
43
- run : npm ci
38
- - run : npm run test-regression
44
+ - run : npm run test-regression | tee coverage.txt && exit ${PIPESTATUS[0]}
45
+ - name : Upload coverage-summary.json
46
+ uses : actions/upload-artifact@v4
47
+ with :
48
+ name : coverage-summary-integration
49
+ path : |
50
+ .coverage/coverage-summary.json
51
+ coverage.txt
Original file line number Diff line number Diff line change 150
150
},
151
151
"scripts" : {
152
152
"test" : " ./scripts/test.sh" ,
153
- "test-unit" : " nyc --reporter=text -x **/assets/** -x **/test/** ./node_modules/mocha/bin/mocha --timeout 90000 \" test/unit/**/**.test.js\" " ,
153
+ "test-unit" : " nyc --reporter=text --reporter=json-summary --report-dir=.coverage - x **/assets/** -x **/test/** ./node_modules/mocha/bin/mocha --timeout 90000 \" test/unit/**/**.test.js\" " ,
154
154
"test-lint" : " ./scripts/test-lint.sh" ,
155
155
"test-system" : " ./node_modules/mocha/bin/mocha -x **/assets/** -x **/test/** \" test/system/**.test.js\" " ,
156
- "test-regression" : " ./node_modules/mocha/bin/mocha test/integration/integration.test.js test/unit/sanity.test.js" ,
156
+ "test-regression" : " nyc --reporter=text --reporter=json-summary --report-dir=.coverage ./node_modules/mocha/bin/mocha test/integration/integration.test.js test/unit/sanity.test.js" ,
157
157
"release" : " ./scripts/release.sh" ,
158
158
"coverage" : " nyc report --reporter=html --reporter=text mocha"
159
159
}
You can’t perform that action at this time.
0 commit comments