Skip to content

Commit

Permalink
chore: combine js & ts coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna2020 committed Oct 12, 2023
1 parent d6488d5 commit f216143
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/report-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
- name: Run Tests
run: |
npm run test:js:ci
npm run test:ts:ci
- name: Run Lint Checks
run: |
Expand All @@ -43,16 +42,10 @@ jobs:
with:
directory: ./reports/coverage

- name: Upload TS Coverage Reports to Codecov
uses: codecov/[email protected]
with:
directory: ./reports/ts-coverage

- name: Fix filesystem paths in generated reports
if: always()
run: |
sed -i 's+home/runner/work/rudder-transformer/rudder-transformer+/github/workspace+g' reports/coverage/lcov.info
sed -i 's+home/runner/work/rudder-transformer/rudder-transformer+/github/workspace+g' reports/ts-coverage/lcov.info
sed -i 's+/home/runner/work/rudder-transformer/rudder-transformer+/github/workspace+g' reports/eslint.json
- name: SonarCloud Scan
Expand Down
1 change: 1 addition & 0 deletions jest.default.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ module.exports = {
'**/integrations/**/*.(test).[j]s?(x)',
'**/util/**/*.(test).[j]s?(x)',
'**/*.(test).[j]s?(x)',
'**/*.(test).ts?(x)',
],

// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
Expand Down

0 comments on commit f216143

Please sign in to comment.