-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK-1857 fix GitHub actions coverage (#262)
Removed the workflow 'sonar', added sonarcloud as last step of the 'tests' workflow's job (Unit Tests)
- Loading branch information
1 parent
9832fd5
commit b534500
Showing
2 changed files
with
10 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -11,6 +11,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# Disabling shallow clone is recommended for improving relevancy of reporting for sonarcloud | ||
fetch-depth: 0 | ||
|
||
- uses: actions/[email protected] | ||
|
||
|
@@ -24,7 +27,13 @@ jobs: | |
|
||
- run: npm test | ||
|
||
- run: npm run lint | ||
- name: Fix code coverage paths | ||
run: sed -i 's/\/home\/runner\/work\/yoti-node-sdk\/yoti-node-sdk\//\/github\/workspace\//g' ./coverage/lcov.info | ||
|
||
- uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
examples: | ||
name: Lint Examples | ||
|
@@ -97,4 +106,3 @@ jobs: | |
- run: npm update | ||
|
||
- run: npm run unit-test | ||
|