File tree 4 files changed +9
-45
lines changed
4 files changed +9
-45
lines changed Original file line number Diff line number Diff line change @@ -45,24 +45,11 @@ jobs:
45
45
run : |
46
46
npm run test-coverage-ci || echo "Silently ignoring coverage threshold limit..."
47
47
48
- - name : Check if a valid lcov.info file is generated
49
- id : check-lcov-non-empty
50
- run : |
51
- if [ -s "./coverage/lcov.info" ]; then
52
- echo "lcov.info is not empty."
53
- echo "isNotEmpty=true" >> $GITHUB_OUTPUT
54
- else
55
- echo "lcov.info is empty."
56
- echo "isNotEmpty=false" >> $GITHUB_OUTPUT
57
- fi
58
-
59
48
- name : Upload test coverage report
60
- if : ${{ steps.check-lcov-non-empty.outputs.isNotEmpty == 'true'}}
61
49
uses : codecov/codecov-action@v4.0.1
62
50
with :
63
51
files : ./coverage/lcov.info
64
52
token : ${{ secrets.CODECOV_TOKEN }}
65
53
# - name: Exit if coverage condition not met
66
54
# if: ${{ steps.test.outputs.exit_code }} != 0
67
55
# run: exit ${{ steps.test.outputs.exit_code }}
68
-
Original file line number Diff line number Diff line change 26
26
[ ![ FINOS - Incubating] ( https://cdn.jsdelivr.net/gh/finos/contrib-toolbox@master/images/badge-incubating.svg )] ( https://community.finos.org/docs/governance/Software-Projects/stages/incubating )
27
27
[ ![ NPM] ( https://img.shields.io/npm/v/@finos/git-proxy?colorA=00C586&colorB=000000 )] ( https://www.npmjs.com/package/@finos/git-proxy )
28
28
[ ![ Build] ( https://img.shields.io/github/actions/workflow/status/finos/git-proxy/nodejs.yml?branch=main&label=CI&logo=github&colorA=00C586&colorB=000000 )] ( https://github.com/finos/git-proxy/actions/workflows/nodejs.yml )
29
+ [ ![ codecov] ( https://codecov.io/gh/finos/git-proxy/branch/main/graph/badge.svg )] ( https://codecov.io/gh/finos/git-proxy )
29
30
[ ![ Documentation] ( https://img.shields.io/badge/_-documentation-000000?colorA=00C586&logo=docusaurus&logoColor=FFFFFF& )] ( https://git-proxy.finos.org )
30
31
<br />
31
32
[ ![ License] ( https://img.shields.io/github/license/finos/git-proxy?colorA=00C586&colorB=000000 )] ( https://github.com/finos/git-proxy/blob/main/LICENSE )
Original file line number Diff line number Diff line change
1
+ coverage :
2
+ status :
3
+ project :
4
+ default :
5
+ informational : true
6
+ patch :
7
+ default :
8
+ informational : true
Original file line number Diff line number Diff line change 1
- /* eslint-disable max-len */
2
- 'use strict' ;
3
-
4
- // const { execFileSync } = require('child_process');
5
-
6
1
const opts = {
7
2
branches : 80 ,
8
3
lines : 80 ,
9
4
functions : 80 ,
10
5
statements : 80 ,
11
6
} ;
12
7
13
- // Only generate coverage report for changed files in PR
14
- // see: https://github.com/actions/checkout/issues/438#issuecomment-1446882066
15
- // https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
16
- // if (process.env.GITHUB_BASE_REF !== undefined) {
17
- // console.log('Generating coverage report for changed files...');
18
- // try {
19
- // const baseRef = execFileSync('git', [
20
- // 'rev-parse',
21
- // `origin/${process.env.GITHUB_BASE_REF}`,
22
- // ])
23
- // .toString()
24
- // .replace('\n', '');
25
- // const headRef = process.env.GITHUB_SHA;
26
- // const stdout = execFileSync('git', [
27
- // 'diff',
28
- // '--name-only',
29
- // `${baseRef}..${headRef}`,
30
- // ]).toString();
31
- // opts = {
32
- // ...opts,
33
- // include: stdout.split('\n'),
34
- // };
35
- // } catch (error) {
36
- // console.log('Error: ', error);
37
- // }
38
- // }
39
-
40
8
console . log ( 'nyc config: ' , opts ) ;
41
9
module . exports = opts ;
You can’t perform that action at this time.
0 commit comments