Skip to content

Bump xunit.runner.visualstudio from 2.5.6 to 2.5.7 #64

Bump xunit.runner.visualstudio from 2.5.6 to 2.5.7

Bump xunit.runner.visualstudio from 2.5.6 to 2.5.7 #64

Workflow file for this run

name: SonarCloud
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
java-package: jdk # optional (jdk or jre) - defaults to jdk
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup .Net SDK (v8.0)
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Install dotnet global tools
run: |
dotnet tool install --global dotnet-coverage
dotnet tool install --global dotnet-sonarscanner
- 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:"GeneGenie.Gedcom" /o:"thegenegenieproject" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
dotnet build --no-incremental
dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'
dotnet sonarscanner end