Skip to content

Commit

Permalink
Add ShopifySharp.Extensions.DI tests to CI test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Dec 9, 2023
1 parent f46e094 commit 0a0ac36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/scripts/test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/utils.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0a0ac36

Please sign in to comment.