Test merge for actions #22
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: | |
pull_request: | |
branches: [ master, main ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
name: Build and test Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Building requires an up-to-date .NET SDK. | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
# Restore and build | |
- 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 | |
# Run tests for linux | |
- name: Test on .NET 6.0 | |
run: dotnet test -c Release -f net6.0 --no-build --no-restore -l "console;verbosity=detailed" | |
test-windows: | |
name: Build and test on Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Building requires an up-to-date .NET SDK. | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
# Run tests on windows | |
- name: Test on .NET Framework 4.6.2 (Windows only) | |
run: dotnet test -c Release -f net462 -l "console;verbosity=detailed" |