Skip to content

Commit e0a586a

Browse files
committed
[spec] set .NET 8 tests only for linux
1 parent d0a20e7 commit e0a586a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
- os: ubuntu-latest
2121
solution: Simplify.NetCore.sln
2222
tests-exclude-category: Windows
23+
dotnet-test-framework: net8.0
24+
25+
env:
26+
DOTNET_TEST_FRAMEWORK: ${{ matrix.dotnet-test-framework }} # Set at job level
2327

2428
steps:
2529
- name: Code Checkout
@@ -35,7 +39,7 @@ jobs:
3539
run: dotnet build ${{ matrix.solution }} --no-restore -c Release
3640

3741
- name: Perform Unit Testing
38-
run: dotnet test ${{ matrix.solution }} --no-build -c Release --framework net8.0 --filter "TestCategory != Integration & TestCategory != ${{ matrix.tests-exclude-category }}" --verbosity normal
42+
run: dotnet test ${{ matrix.solution }} --no-build -c Release --filter "TestCategory != Integration & TestCategory != ${{ matrix.tests-exclude-category }}" --verbosity normal
3943

4044
- name: Create Packages
4145
run: dotnet pack ${{ matrix.solution }} --no-build -c Release -o ./publish

0 commit comments

Comments
 (0)