File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,14 @@ jobs:
39
39
run : |
40
40
New-Item -Path .\.sonar\scanner -ItemType Directory
41
41
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
42
- - name : Install Coverlet
43
- if : steps.cache-sonar-scanner.outputs.cache-hit != 'true'
44
- shell : powershell
45
- run : |
46
- dotnet tool install --global coverlet.console
47
42
- name : Build and analyze
48
43
env :
49
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
50
45
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
51
46
shell : powershell
52
47
run : |
53
48
.\.sonar\scanner\dotnet-sonarscanner begin /k:"sir-gon_algorithm-exercises-csharp" /o:"sir-gon" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
54
- dotnet build --no-incremental
55
- coverlet .\algorithm-exercises-csharp\bin\Debug\net8.0\algorithm-exercises-csharp-lib.dll
56
- --target "dotnet"
57
- --targetargs "test --no-build"
58
- -f=opencover
59
- -o="coverage.xml"
49
+ dotnet restore
50
+ dotnet build --no-restore
51
+ dotnet test --no-build --verbosity normal
60
52
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
You can’t perform that action at this time.
0 commit comments