Skip to content

Commit

Permalink
Merge pull request #7 from vishvamsinh28/addCodecovFork
Browse files Browse the repository at this point in the history
feat: add codecov to forked repo
  • Loading branch information
vishvamsinh28 authored Aug 31, 2024
2 parents b19618f + 430cecb commit 20ea32e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/if-nodejs-pr-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,14 @@ jobs:
name: Run release assets generation to make sure PR does not break it
shell: bash
run: npm run generate:assets --if-present

- if: steps.packagejson.outputs.exists == 'true'
name: Upload coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
fail_ci_if_error: true
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
token: 25358ea8-8f8c-4ee1-aff3-282914082378
verbose: true
10 changes: 6 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
verbose: true, // display individual test results with the test suite hierarchy
collectCoverage: true, // collect test coverage information\
collectCoverageFrom: ['scripts/**/*.js']
};
verbose: true,
collectCoverage: true,
collectCoverageFrom: ['scripts/**/*.js'],
coverageReporters: ['text', 'lcov', 'json-summary'],
coverageDirectory: 'coverage'
};

0 comments on commit 20ea32e

Please sign in to comment.