Skip to content

Commit 140d096

Browse files
committed
feat: update dotnet workflow to use PowerShell and ensure dotnet restore runs before analysis
1 parent 9aaed2a commit 140d096

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/dotnet.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ jobs:
6767

6868
- name: build and analyze
6969
if: matrix.platform.name == 'MacOS'
70+
shell: pwsh
7071
run: |
71-
dotnet restore
7272
dotnet tool install --global dotnet-coverage
73+
dotnet restore
7374
./.sonar/scanner/dotnet-sonarscanner begin /k:"magic5644_codeLineCounter" /o:"magic5644" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false
7475
dotnet build --no-incremental
7576
dotnet-coverage collect 'dotnet test --no-build' -f xml -o 'coverage.xml'

0 commit comments

Comments
 (0)