Skip to content

Commit

Permalink
Pipeline status should reflect tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipufu committed Nov 13, 2023
1 parent 0a459f9 commit d5e4f45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
dotnet-version: '8.0.100-rc.2.23502.2'
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
Expand All @@ -52,4 +52,6 @@ jobs:
dotnet tool install --global dotnet-coverage
dotnet build --no-incremental
dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
$testExitCode = $LASTEXITCODE
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
if ($testExitCode -ne 0) { exit $testExitCode }

0 comments on commit d5e4f45

Please sign in to comment.