From 52384a59957feb1cab9fd2cb950d1518caf65c4b Mon Sep 17 00:00:00 2001 From: Lars Elgtvedt Susaas Date: Fri, 15 Mar 2024 15:45:17 +0100 Subject: [PATCH] enable unittests (#81) * fixed the action to use run the tests * change Tests project to also use .net 4.8.1 (like the rest) --- .github/workflows/dotnet.yml | 11 +++++++---- Tests/Tests.csproj | 14 +++++++------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5e96e36f..7a7e9bcd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -24,13 +24,16 @@ jobs: - name: Add Packages run: | nuget install EDSEditorGUI/packages.config -OutputDirectory packages -# nuget install Tests/packages.config -OutputDirectory packages + nuget install Tests/packages.config -OutputDirectory packages - name: Build # run: make all # builds the Debug configuration - run: msbuild EDSEditorGUI /property:Configuration=Release + run: | + msbuild /property:Configuration=Release + msbuild /property:Configuration=Debug # run: dotnet build --no-restore -# - name: Test -# run: dotnet test --no-build --verbosity normal + - name: Test + run: | + dotnet test --no-build --verbosity normal - name: Upload Artifact uses: actions/upload-artifact@v3 with: diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 77ded76c..cf64956a 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -11,7 +11,7 @@ Properties Tests Tests - v4.8 + v4.8.1 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10.0 @@ -114,11 +114,11 @@ - \ No newline at end of file