This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
Bump xunit from 2.5.0 to 2.5.1 #174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sonar | |
on: push | |
jobs: | |
Code-Quality: | |
runs-on: ubuntu-latest | |
if: github.actor != 'dependabot[bot]' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install Sonar Scanner | |
run: dotnet tool install --global dotnet-sonarscanner | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Start Sonar Analysis | |
run: dotnet-sonarscanner begin /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /o:"ecoapm" /k:"ecoAPM_TompkinsCOVID" /d:sonar.cs.vstest.reportsPaths="TompkinsCOVID.Tests/TestResults/results.trx" /d:sonar.cs.opencover.reportsPaths="TompkinsCOVID.Tests/TestResults/coverage.opencover.xml" | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --logger "trx;LogFileName=results.trx" --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | |
- name: Move Code Coverage | |
run: mv TompkinsCOVID.Tests/TestResults/**/*.xml TompkinsCOVID.Tests/TestResults | |
- name: Finish Sonar Analysis | |
run: dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}" | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |