Skip to content

Upgrade test framework #100

Upgrade test framework

Upgrade test framework #100

name: Continuous Integration
on: [push, pull_request]
env:
Configuration: Release
ContinuousIntegrationBuild: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
TERM: xterm-256color
jobs:
package:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
name: Build and run tests
steps:
- name: Checkout git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
8.x
- name: Restore NuGet packages
run: dotnet restore
- name: Build solution
run: dotnet build --no-restore --verbosity normal
- name: Run tests
run: dotnet test --no-build --verbosity normal
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: TestResults-${{ runner.os }}
path: TestResults-*.html
- name: Create and validate NuGet packages
run: |
dotnet tool restore
dotnet pack --no-build --verbosity normal
if: startsWith(matrix.os,'windows')