Skip to content

Commit 6de8adc

Browse files
committed
Run tests as part of sonar build
1 parent 1848450 commit 6de8adc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/Sonar.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
7171
shell: pwsh
7272
run: |
73-
./.sonar/scanner/dotnet-sonarscanner begin /k:"Giorgi_DuckDB.NET" /o:"giorgi" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
73+
./.sonar/scanner/dotnet-sonarscanner begin /k:"Giorgi_DuckDB.NET" /o:"giorgi" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.cs.opencover.reportsPaths=DuckDB.NET.Test/coverage.net8.0.info.xml /d:sonar.host.url="https://sonarcloud.io"
7474
dotnet build
75+
dotnet test --configuration Release --verbosity normal --logger GitHubActions /p:CollectCoverage=true /p:BuildType=Full /p:DoesNotReturnAttribute="DoesNotReturnAttribute"
7576
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)