Skip to content

Commit 734b976

Browse files
Reverts changes on pipeline
1 parent e7b4c08 commit 734b976

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/CodeQuality.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
pull_request:
66
types: [opened, synchronize, reopened]
7-
7+
88
jobs:
99
build:
1010
name: Build
@@ -26,21 +26,20 @@ jobs:
2626

2727
- name: Restore dependencies
2828
run: dotnet restore SysML2.NET.sln
29-
29+
3030
- name: Sonarqube Begin
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3333
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3434
run: |
3535
dotnet tool install --global dotnet-sonarscanner
36-
dotnet tool install --global dotnet-coverage
3736
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"
3837
3938
- name: Build
40-
run: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
39+
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
4140

4241
- name: Run Tests and Compute Coverage
43-
run: dotnet-coverage collect "dotnet test SysML2.NET.sln --filter Category!='Expected' --no-build --configuration Release" -f xml -o "coverage.xml"
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\"
4443

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

0 commit comments

Comments
 (0)