Skip to content

Test merge for actions #25

Test merge for actions

Test merge for actions #25

Workflow file for this run

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 Castle.Windsor.Tests -c Release -f net6.0 --no-build --no-restore -l "console;verbosity=detailed"
dotnet test Castle.Windsor.Extensions.DependencyInjection.Tests -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"