Skip to content

Commit ad298f8

Browse files
committed
Change: Simplify test execution in release workflow
1 parent dfaff84 commit ad298f8

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,8 @@ jobs:
2525

2626
# Ensure that the tests must pass
2727
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
28-
- name: Run tests - Extensions
29-
run: dotnet run -c Release --no-restore --no-build
30-
working-directory: "tests/Tests.CodeOfChaos.Extensions"
31-
- name: Run tests - Extensions.Analyzers
32-
run: dotnet run -c Release --no-restore --no-build
33-
working-directory: "tests/Tests.CodeOfChaos.Extensions.Analyzers"
34-
- name: Run tests - Extensions.AspNetCore
35-
run: dotnet run -c Release --no-restore --no-build
36-
working-directory: "tests/Tests.CodeOfChaos.Extensions.AspNetCore"
37-
- name: Run tests - Extensions.EntityFrameworkCore
38-
run: dotnet run -c Release --no-restore --no-build
39-
working-directory: "tests/Tests.CodeOfChaos.Extensions.EntityFrameworkCore"
40-
# - name: Run tests - Extensions.MicrosoftLogging
41-
# run: dotnet run -c Release --no-restore --no-build
42-
# working-directory: "tests/Tests.CodeOfChaos.Extensions.MicrosoftLogging"
43-
- name: Run tests - Extensions.Serilog
44-
run: dotnet run -c Release --no-restore --no-build
45-
working-directory: "tests/Tests.CodeOfChaos.Extensions.Serilog"
46-
- name: Run tests - Extensions.DependencyInjection
47-
run: dotnet run -c Release --no-restore --no-build
48-
working-directory: "tests/Tests.CodeOfChaos.Extensions.DependencyInjection"
49-
- name: Run tests - Extensions.DependencyInjection.Generators
50-
run: dotnet run -c Release --no-restore --no-build
51-
working-directory: "tests/Tests.CodeOfChaos.Extensions.DependencyInjection.Generators"
52-
- name: Run tests - Extensions.FluentValidation
53-
run: dotnet run -c Release --no-restore --no-build
54-
working-directory: "tests/Tests.CodeOfChaos.Extensions.FluentValidation"
55-
- name: Run tests - Extensions.ObjectPool
56-
run: dotnet run -c Release --no-restore --no-build
57-
working-directory: "tests/Tests.CodeOfChaos.Extensions.ObjectPool"
28+
- name: Run tests
29+
run: dotnet test CodeOfChaos.Extensions.sln --configuration Release --no-restore --no-build
5830

5931
- name: Publish to NuGet
6032
env:

0 commit comments

Comments
 (0)