Multi-framework Consumer test (#89)

This commit is contained in:
Patrick Stevens
2024-06-23 11:50:58 +01:00
committed by GitHub
parent 9f5f22c644
commit 870804d6ef
3 changed files with 7 additions and 4 deletions

View File

@@ -57,6 +57,10 @@ jobs:
security-events: none
statuses: read
strategy:
matrix:
framework: ["net6.0", "net8.0"]
steps:
- uses: actions/checkout@v4
with:
@@ -71,7 +75,7 @@ jobs:
- name: Build
run: 'nix develop --command dotnet build --no-restore --configuration Release'
- name: Test using self
run: 'nix develop --command dotnet exec ./WoofWare.NUnitTestRunner/bin/Release/net8.0/WoofWare.NUnitTestRunner.dll ./Consumer/bin/Release/net8.0/Consumer.dll --trx TrxOut/out.trx'
run: 'nix develop --command dotnet exec ./WoofWare.NUnitTestRunner/bin/Release/net8.0/WoofWare.NUnitTestRunner.dll ./Consumer/bin/Release/${{matrix.framework}}/Consumer.dll --trx TrxOut/out.trx'
- name: Parse Trx files
uses: NasAmin/trx-parser@v0.6.0
if: always()

View File

@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

View File

@@ -57,8 +57,8 @@
};
};
devShell = pkgs.mkShell {
buildInputs = [dotnet-sdk];
packages = [
(pkgs.dotnetCorePackages.combinePackages [dotnet-sdk pkgs.dotnetCorePackages.runtime_6_0])
pkgs.alejandra
pkgs.nodePackages.markdown-link-check
pkgs.shellcheck