Skip to content

Commit f7f988f

Browse files
committed
ci: skip NuGet package generation during test runs
Update the GitHub Actions workflow to add `-p:GeneratePackageOnBuild=false` to the dotnet test command. This prevents unnecessary package creation during CI test runs, improving build performance. The project has `<GeneratePackageOnBuild>true</GeneratePackageOnBuild>` set, which causes packages to be created on every build, including test runs. Packages are still properly created during the "Pack" step for releases. Benefits: - Faster CI test execution - Cleaner build output - Packages only created when actually needed (Release builds)
1 parent aeb86f9 commit f7f988f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
useConfigFile: true
3333

3434
- name: Run Tests
35-
run: dotnet test
35+
run: dotnet test -p:GeneratePackageOnBuild=false
3636

3737
- name: Pack
3838
run: dotnet build -c Release -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg

0 commit comments

Comments
 (0)