Skip to content

Commit c6700e7

Browse files
committed
fix github actions workflow
1 parent a61ca98 commit c6700e7

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/reviewing_changes.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
max-parallel: 3
19+
# .net5 runner doesn't installed at runtime, so skipping it and adding other .net latest versions.
20+
# added target-framework in matrix to avoid runtime errors as each runner has only its matching runtime installed.
1921
matrix:
20-
dotnet: ['6.0.x', '5.0.x']
22+
dotnet: ['6.0.x', '8.0.x', '9.0.x', '10.0.x']
23+
include:
24+
- dotnet: '6.0.x'
25+
target-framework: 'net6.0'
26+
- dotnet: '8.0.x'
27+
target-framework: 'net8.0'
28+
- dotnet: '9.0.x'
29+
target-framework: 'net9.0'
30+
- dotnet: '10.0.x'
31+
target-framework: 'net10.0'
2132
os: [ windows-latest ]
2233
name: NUnit Repo ${{ matrix.dotnet }} - ${{ matrix.os }} Sample
2334
env:
@@ -53,16 +64,15 @@ jobs:
5364
dotnet-version: ${{ matrix.dotnet }}
5465

5566
- name: Install dependencies
56-
run: |
67+
run: |
5768
dotnet --version
58-
dotnet build
59-
69+
dotnet build /p:TargetFramework=${{ matrix.target-framework }}
6070
6171
- name: Run sample tests
62-
run: dotnet test --filter "Category=sample-test"
72+
run: dotnet test --filter "Category=sample-test" /p:TargetFramework=${{ matrix.target-framework }}
6373

6474
- name: Run local tests
65-
run: dotnet test --filter "Category=sample-local-test"
75+
run: dotnet test --filter "Category=sample-local-test" /p:TargetFramework=${{ matrix.target-framework }}
6676

6777
- if: always()
6878
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975

NUnit-BrowserStack/NUnit-BrowserStack.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0</TargetFrameworks>
55
<RootNamespace>SingleTest</RootNamespace>
66
<AssemblyName>SingleTest</AssemblyName>
77
<ImplicitUsings>enable</ImplicitUsings>

0 commit comments

Comments
 (0)