Skip to content

Bump xunit from 2.4.2 to 2.7.0 #286

Bump xunit from 2.4.2 to 2.7.0

Bump xunit from 2.4.2 to 2.7.0 #286

Workflow file for this run

name: CI
on:
push:
branches:
- mainstream
pull_request:
paths-ignore:
- '**/*.md'
- '**/*.txt'
permissions: read-all
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of SonarCloud analysis
- name: Set up JDK 11 # Needed for sonarscanner
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
- name: Set up .NET SDK from global.json
uses: actions/setup-dotnet@v3
- name: Restore .NET local tools
run: dotnet tool restore
- name: Enable SonarCloud scanning
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# We can't use secrets in if conditions so we first put it in an environment variable.
if: env.SONAR_TOKEN != null && runner.os == 'Linux'
run: |
dotnet sonarscanner begin /k:"teo-tsirpanis_Farkle" /o:"teo-tsirpanis" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./**/*.opencover.xml"
- name: Run tests
run: |
dotnet run --project eng/Farkle.Build.fsproj -- -t Test
- name: End SonarCloud scanning
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != null && runner.os == 'Linux'
run: |
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"