Skip to content

Multiple frameworks support #65

Multiple frameworks support

Multiple frameworks support #65

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Tests Runner
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 9
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: ./src/
run: dotnet restore
- name: Build
working-directory: ./src/
run: dotnet build --no-restore
- name: Test .NET 9.0
working-directory: ./src/
run: dotnet test --framework net9.0 --no-build --verbosity normal
- name: Test .NET 8.0
working-directory: ./src/
run: dotnet test --framework net8.0 --no-build --verbosity normal