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"