forked from castleproject/Windsor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
78 additions
and
53 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,67 @@ | ||
name: .NET CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- '.github/**' | ||
pull_request: | ||
branches: [ master, main ] | ||
paths-ignore: | ||
- '**.md' | ||
- '.github/**' | ||
|
||
jobs: | ||
build: | ||
|
||
name: Build and test Linux | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET 6.0 | ||
uses: actions/setup-dotnet@v1 | ||
|
||
# Building requires an up-to-date .NET SDK. | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
dotnet-version: | | ||
6.0.x | ||
7.0.x | ||
# Restore and build | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
run: dotnet restore | ||
- name: Build Nuget Versions | ||
run: dotnet build ./tools/Explicit.NuGet.Versions/Explicit.NuGet.Versions.sln | ||
run: dotnet build ./tools/Explicit.NuGet.Versions/Explicit.NuGet.Versions.sln | ||
- name: Build Release | ||
run: dotnet build Castle.Windsor.sln -c Release | ||
- name: Castle.Windsor.Tests | ||
run: dotnet test src/Castle.Windsor.Tests | ||
- name: Castle.Windsor.Extensions.DependencyInjection.Tests | ||
run: dotnet test src/Castle.Windsor.Extensions.DependencyInjection.Tests | ||
- name: Castle.Facilities.AspNetCore.Tests | ||
run: dotnet test src/Castle.Facilities.AspNetCore.Tests | ||
- name: Castle.Facilities.AspNet.SystemWeb.Tests | ||
run: dotnet test src/Castle.Facilities.AspNet.SystemWeb.Tests | ||
- name: Castle.Facilities.AspNet.Mvc.Tests | ||
run: dotnet test src/Castle.Facilities.AspNet.Mvc.Tests | ||
- name: Castle.Facilities.AspNet.WebApi.Tests | ||
run: dotnet test src/Castle.Facilities.AspNet.WebApi.Tests | ||
- name: Castle.Facilities.WcfIntegration.Tests | ||
run: dotnet test src/Castle.Facilities.WcfIntegration.Tests | ||
|
||
# Run tests for linux | ||
- name: Test on .NET 6.0 | ||
run: | | ||
dotnet test src/Castle.Windsor.Tests -c Release -f net6.0 --no-build --no-restore -l "console;verbosity=detailed" | ||
dotnet test src/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 | ||
# Restore and build | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build Release | ||
run: dotnet build Castle.Windsor.sln -c Release | ||
|
||
# Run tests on windows | ||
- name: Test on .NET Framework 4.6.2 (Windows only) | ||
run: | | ||
dotnet test src/Castle.Windsor.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" | ||
dotnet test src/Castle.Facilities.AspNet.Mvc.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" | ||
dotnet test src/Castle.Facilities.AspNet.SystemWeb.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" | ||
dotnet test src/Castle.Facilities.AspNet.WebApi.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" | ||
dotnet test src/Castle.Facilities.WcfIntegration.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" |
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
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
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
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
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
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
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
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
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
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