File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
strategy :
11
11
fail-fast : true
12
12
matrix :
13
- node-version : [16.x]
13
+ node-version : [14.x, 16.x]
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
- name : Use Node.js ${{ matrix.node-version }}
36
36
# ];
37
37
# SUMMARY = SUMMARY.split('\n')[5]; // 'Lines : 31.93% ( 38/119 )'
38
38
# SUMMARY = SUMMARY.split(':')[1].split('(')[0].trim(); // '31.93%'
39
- SUMMARY="$(npm test -- --coverageReporters='text-summary' | tail -2 | head -1)"
39
+ SUMMARY="$(npm run test-ci | tail -2 | head -1)"
40
40
TOKENS=($SUMMARY)
41
41
# process.env.COVERAGE = '31.93%';
42
42
echo "COVERAGE=$(echo ${TOKENS[2]})" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 35
35
"release" : " npm login && npm publish" ,
36
36
"test" : " vitest run --coverage" ,
37
37
"test-coverage" : " vitest run --coverage" ,
38
+ "test-ci" : " vitest run --coverage.enabled --coverage.reporter='text-summary'" ,
38
39
"test-dev" : " vitest"
39
40
},
40
41
"dependencies" : {
You can’t perform that action at this time.
0 commit comments