Bump actions/setup-dotnet from 4 to 5 (#1325) #866
This file contains hidden or 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
| ### Build and tests all pushes, also code coverage | |
| name: 🔍 CI Analyze sources | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| sonarscanner: | |
| name: 🔍 SonarScanner | |
| environment: CI - analyze environment | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📤 Checkout the repository | |
| uses: actions/checkout@main | |
| with: | |
| # Shallow clones should be disabled for a better relevancy of analysis | |
| fetch-depth: 0 | |
| - name: 🔍 Analyze code | |
| uses: highbyte/sonarscan-dotnet@v2.4.2 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| sonarOrganization: net-daemon | |
| sonarProjectKey: net-daemon_netdaemon | |
| sonarProjectName: netdaemon | |
| 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" |