Fix and run tests on linux with net6 only #10
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: .NET CI | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
pull_request: | |
branches: [ master, main ] | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Install all supported .NET versions | |
- name: Setup .NET 6.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
# Building requires an up-to-date .NET SDK. | |
- name: Install .NET 7.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build Nuget Versions | |
run: dotnet build ./tools/Explicit.NuGet.Versions/Explicit.NuGet.Versions.sln | |
- name: Build Release | |
run: dotnet build Castle.Windsor.sln -c Release | |
- name: Test on .NET 6.0 | |
run: dotnet test -c Release -f net6.0 --no-build --no-restore -l "console;verbosity=detailed" |