Skip to content

Commit

Permalink
ci: add test results and coverage to sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeHiveJava committed May 17, 2021
1 parent 91e88f9 commit cd23dc2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ jobs:
- name: 🔍 Analyze code
uses: highbyte/sonarscan-dotnet@v2.1-beta
env:
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
sonarOrganization: net-daemon
sonarProjectKey: net-daemon_netdaemon
sonarProjectName: netdaemon

sonarBeginArguments: /d:sonar.inclusions="./src/**" /d:sonar.test.inclusions="./tests/**"
dotnetDisableTests: true
dotnetTestArguments: --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
sonarBeginArguments: >-
/d:sonar.inclusions="**/src/**"
/d:sonar.test.inclusions="**/tests/**"
/d:sonar.cs.xunit.reportsPaths="**/tests/**/TestResults/*.trx"
/d:sonar.cs.opencover.reportsPaths="**/tests/**/coverage.opencover.xml"

0 comments on commit cd23dc2

Please sign in to comment.