Skip to content

Commit

Permalink
Merge pull request #9 from vishvamsinh28/flagCheck
Browse files Browse the repository at this point in the history
feat: remove flag and package.json check
  • Loading branch information
vishvamsinh28 authored Sep 13, 2024
2 parents 9e4e1b6 + d07f706 commit d7967c3
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 @@ -60,6 +60,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "${{ steps.nodeversion.outputs.version }}"

- name: Install dependencies
run: npm ci
- if: steps.packagejson.outputs.exists == 'true'
Expand All @@ -72,3 +73,13 @@ 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
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 d7967c3

Please sign in to comment.