|
7 | 7 | - '**.md' |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - build: |
| 10 | + build-lin: |
11 | 11 | name: Build and test Linux |
12 | | - runs-on: ubuntu-latest |
13 | | - |
14 | | - steps: |
15 | | - - uses: actions/checkout@v2 |
16 | | - |
17 | | - # Building requires an up-to-date .NET SDK. |
18 | | - - name: Setup dotnet |
19 | | - uses: actions/setup-dotnet@v3 |
20 | | - with: |
21 | | - dotnet-version: | |
22 | | - 6.0.x |
23 | | - 7.0.x |
24 | | - |
25 | | - # Restore and build |
26 | | - - name: Restore dependencies |
27 | | - run: dotnet restore |
28 | | - - name: Build Nuget Versions |
29 | | - run: dotnet build ./tools/Explicit.NuGet.Versions/Explicit.NuGet.Versions.sln |
30 | | - - name: Build Release |
31 | | - run: dotnet build Castle.Windsor.sln -c Release |
32 | | - |
33 | | - # Run tests for linux |
34 | | - - name: Test on .NET 6.0 |
35 | | - run: | |
36 | | - dotnet test src/Castle.Windsor.Tests -c Release -f net6.0 --no-build --no-restore -l "console;verbosity=detailed" |
37 | | - dotnet test src/Castle.Windsor.Extensions.DependencyInjection.Tests -c Release -f net6.0 --no-build --no-restore -l "console;verbosity=detailed" |
| 12 | + uses: ./.github/workflows/build-test-linux.yml |
38 | 13 |
|
39 | | - test-windows: |
| 14 | + build-win: |
40 | 15 | name: Build and test on Windows |
41 | | - runs-on: windows-latest |
42 | | - |
43 | | - steps: |
44 | | - - uses: actions/checkout@v2 |
45 | | - |
46 | | - # Building requires an up-to-date .NET SDK. |
47 | | - - name: Setup dotnet |
48 | | - uses: actions/setup-dotnet@v3 |
49 | | - with: |
50 | | - dotnet-version: | |
51 | | - 6.0.x |
52 | | - 7.0.x |
53 | | -
|
54 | | - # Restore and build |
55 | | - - name: Restore dependencies |
56 | | - run: dotnet restore |
57 | | - - name: Build Release |
58 | | - run: dotnet build Castle.Windsor.sln -c Release |
59 | | - |
60 | | - # Run tests on windows |
61 | | - - name: Test on .NET Framework 4.6.2 (Windows only) |
62 | | - run: | |
63 | | - dotnet test src/Castle.Windsor.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" |
64 | | - dotnet test src/Castle.Facilities.AspNet.Mvc.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" |
65 | | - dotnet test src/Castle.Facilities.AspNet.SystemWeb.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" |
66 | | - dotnet test src/Castle.Facilities.AspNet.WebApi.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" |
67 | | - dotnet test src/Castle.Facilities.WcfIntegration.Tests -c Release -f net462 --no-build --no-restore -l "console;verbosity=detailed" |
| 16 | + uses: ./.github/workflows/build-test-win.yml |
0 commit comments