From 0a0ac360e24aac6d31b52dab10633dce271e59a6 Mon Sep 17 00:00:00 2001 From: Joshua Harms Date: Sat, 9 Dec 2023 01:04:46 -0600 Subject: [PATCH] Add ShopifySharp.Extensions.DI tests to CI test execution --- .github/scripts/test.fish | 11 ++++++++++- .github/scripts/utils.fish | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/scripts/test.fish b/.github/scripts/test.fish index 8a89b973..2f52e379 100755 --- a/.github/scripts/test.fish +++ b/.github/scripts/test.fish @@ -3,12 +3,13 @@ echo "Using $(fish --version)" set experimentalTestProject "ShopifySharp.Experimental.Tests/ShopifySharp.Experimental.Tests.fsproj" +set diTestProject "ShopifySharp.Extensions.DependencyInjection/ShopifySharp.Extensions.DependencyInjection.csproj" # Load utility functions set utilsFilePath (dirname (status --current-filename))"/utils.fish" source "$utilsFilePath" -# Build and run the experimental project's tests all at once +# Build and run the the tests for the experimental and DI projects all at once echo "Testing experimental project." buildProject "$experimentalTestProject"; or exit 1; executeTests \ @@ -17,6 +18,14 @@ executeTests \ "$experimentalTestProject" success "Experimental tests succeeded." +echo "Testing DI project." +buildProject "$diTestProject"; or exit 1; +executeTests \ + "ShopifySharp.Extensions.DependencyInjection" \ + "$netCoreApp" \ + "$diTestProject" +success "DI tests succeeded." + # Build the test project once, then let all individual test runs skip build. echo "Building test project." buildProject "$testProjectFile"; or exit 1; diff --git a/.github/scripts/utils.fish b/.github/scripts/utils.fish index 8d7629b2..75a9351b 100644 --- a/.github/scripts/utils.fish +++ b/.github/scripts/utils.fish @@ -2,7 +2,7 @@ set config "Release" set verbosity "quiet" -set netCoreApp "net6.0" +set netCoreApp "net8.0" set netFramework "net472" set testDir "ShopifySharp.Tests" set testProjectFile "$testDir/ShopifySharp.Tests.csproj"