Skip to content

Commit

Permalink
Add test coverage for Sonar
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Howard <[email protected]>
  • Loading branch information
matthoward366 committed Aug 5, 2024
1 parent 643f5ab commit 88d9f8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
- run: ./canvas_modules/common-canvas/build.sh
- run: ./canvas_modules/harness/build.sh test
- run: ./canvas_modules/harness/functional_test.sh
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets. SONAR_TOKEN }}

tag:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sonar.projectKey=elyra-ai_canvas

# relative paths to source directories. More details and properties are described
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
sonar.sources=canvas_modules/common-canvas/src,canvas_modules/common-canvas/utils
sonar.tests=canvas_modules/common-canvas/__tests__
sonar.javascript.lcov.reportPaths=canvas_modules/common-canvas/coverage/lcov.info
sonar.verbose=true

0 comments on commit 88d9f8c

Please sign in to comment.