Bump xunit from 2.7.0 to 2.8.1 (#284) #497
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- rel/* | |
pull_request: | |
branches: | |
- main | |
- rel/* | |
env: | |
ArtifactsDirectoryName: 'artifacts' | |
BuildConfiguration: 'Debug' | |
BuildPlatform: 'Any CPU' | |
ContinuousIntegrationBuild: 'true' | |
DotNet6Version: '6.x' | |
DotNet7Version: '7.x' | |
DotNet8Version: '8.x' | |
jobs: | |
BuildAndTest: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
include: | |
- os: windows-latest | |
name: Windows | |
- os: ubuntu-latest | |
name: Linux | |
- os: macos-latest | |
name: MacOS | |
fail-fast: false | |
name: Build and Test (${{ matrix.name }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET ${{ env.DotNet6Version }}, .NET ${{ env.DotNet7Version }}, and .NET ${{ env.DotNet8Version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
${{ env.DotNet6Version }} | |
${{ env.DotNet7Version }} | |
${{ env.DotNet8Version }} | |
- name: Build Solution | |
run: dotnet build "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/build.binlog" | |
- name: Run Unit Tests (.NET Framework) | |
if: ${{ matrix.name == 'Windows' }} | |
run: dotnet test --logger trx --no-restore --no-build --framework net472 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog" | |
- name: Run Unit Tests (.NET 6) | |
if: ${{ matrix.name != 'MacOS' }} | |
run: dotnet test --logger trx --no-restore --no-build --framework net6.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog" | |
- name: Run Unit Tests (.NET 7) | |
run: dotnet test --logger trx --no-restore --no-build --framework net7.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net7.0.binlog" | |
- name: Run Unit Tests (.NET 8) | |
run: dotnet test --logger trx --no-restore --no-build --framework net8.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog" | |
- name: Upload Test Results | |
uses: actions/upload-artifact@v2 | |
if: success() || failure() | |
with: | |
name: test-results-${{ matrix.name }} | |
path: '**/TestResults/*.trx' | |
if-no-files-found: error | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
if: success() || failure() | |
with: | |
name: ${{ env.ArtifactsDirectoryName }}-${{ matrix.name }} | |
path: ${{ env.ArtifactsDirectoryName }} |