Skip to content

Commit fd8d370

Browse files
committed
Run w/ TestProjTargetFrameworkOverride in CI to catch regressions
1 parent 5723e47 commit fd8d370

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: Dist/BuildRelease.sh -p:ContinuousIntegrationBuild=true -warnaserror
2626

2727
test:
28-
name: Test
28+
name: Unit tests (.NET Framework Runtime)
2929
runs-on: ${{matrix.os.fullname}}
3030
strategy:
3131
fail-fast: false
@@ -46,6 +46,28 @@ jobs:
4646
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true -p:RunStyleCop=false
4747
shell: pwsh
4848

49+
test-netcore:
50+
name: Unit tests (.NET Core Runtime)
51+
runs-on: ${{matrix.os.fullname}}
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
os:
56+
- { prettyname: Windows, fullname: windows-latest }
57+
- { prettyname: Linux, fullname: ubuntu-22.04 } # newer ubuntu versions don't ship with mono, so we need to pin for now, see https://github.com/actions/runner-images/issues/10636
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v6
61+
62+
- name: Install .NET SDK
63+
uses: actions/setup-dotnet@v5
64+
with:
65+
dotnet-version: "8"
66+
67+
- name: Test
68+
run: dotnet test BizHawk.sln -c Release -p:TestProjTargetFrameworkOverride=net8.0 -p:ContinuousIntegrationBuild=true -p:RunStyleCop=false
69+
shell: pwsh
70+
4971
package:
5072
name: Build and package output
5173
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)