Skip to content

Commit cd8216b

Browse files
trying cicd improvement
1 parent 25fbe5d commit cd8216b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/CodeQuality.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ jobs:
3333
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3434
run: |
3535
dotnet tool install --global dotnet-sonarscanner
36+
dotnet tool install --global dotnet-coverage
3637
dotnet sonarscanner begin /k:"STARIONGROUP_SysML2.NET" /o:"stariongroup" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
3738
3839
- name: Build
39-
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
40+
run: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
4041

4142
- name: Run Tests and Compute Coverage
42-
run: dotnet test SysML2.NET.sln --filter Category!="Expected" --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutput="../CoverageResults/" /p:MergeWith="../CoverageResults/coverage.json" /p:CoverletOutputFormat=\"opencover,json\"
43+
run: dotnet-coverage collect "dotnet test SysML2.NET.sln --filter Category!='Expected' --no-build --configuration Release" -f xml -o "coverage.xml"
4344

4445
- name: Sonarqube end
4546
run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)