-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added coverage for ts files (#2331)
* chore: added coverage for ts files * chore: code review changes * chore: code review changes * chore: step title changes
- Loading branch information
1 parent
a66810a
commit 6c0fed7
Showing
5 changed files
with
140 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ jobs: | |
- name: Run Tests | ||
run: | | ||
npm run test:js:ci | ||
npm run test:ts:ci | ||
- name: Run Lint Checks | ||
run: | | ||
|
@@ -41,11 +42,17 @@ jobs: | |
uses: codecov/[email protected] | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ module.exports = { | |
branches: 60, | ||
functions: 80, | ||
lines: 80, | ||
statements: 80, | ||
}, | ||
}, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters