Skip to content

Bump xunit.runner.visualstudio from 3.1.5 to 4.0.0 #418

Bump xunit.runner.visualstudio from 3.1.5 to 4.0.0

Bump xunit.runner.visualstudio from 3.1.5 to 4.0.0 #418

Workflow file for this run

name: Sonar
on: push
jobs:
Code-Quality:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Install Java
uses: actions/setup-java@v5
with:
distribution: microsoft
java-version: 21
- 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.token="$SONAR_TOKEN" /o:"ecoapm" /k:"ecoAPM_SimpleGPIO" /d:sonar.cs.vstest.reportsPaths="SimpleGPIO.Tests/**/results.trx" /d:sonar.cs.opencover.reportsPaths="SimpleGPIO.Tests/**/coverage.opencover.xml" /d:sonar.coverage.exclusions="Examples/**,SimpleGPIO/Device/**"
env:
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
- name: Build
run: dotnet build --no-restore
env:
SONAR_DOTNET_ENABLE_CONCURRENT_EXECUTION: true
- name: Test
run: dotnet test --no-build --logger "trx;LogFileName=results.trx" --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Finish Sonar Analysis
run: dotnet-sonarscanner end /d:sonar.token="$SONAR_TOKEN"
env:
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}