Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
adimiko committed Feb 14, 2024
1 parent fbce156 commit 87f98b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,12 @@ jobs:
- name: Install SonarCloud scanner
run: dotnet tool install --global dotnet-sonarscanner

- name: Install dotnet coverage
run: dotnet tool install --global dotnet-coverage

- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
dotnet-sonarscanner begin /k:"adimiko_transactioncontext" /o:"adimiko" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build --no-incremental
dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml"
dotnet test --collect "Code Coverage"
dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 comments on commit 87f98b7

Please sign in to comment.