Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ci: use safer non-cone-mode sparse checkout for integration tests
Without Directory.Build.props, nuget.config etc.
  • Loading branch information
jpnurmi committed Jun 19, 2025
commit 19b741fa25fe97c85eeaa7498fda304fd8f4120b
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,16 @@ jobs:
src/**/Release/*.snupkg

- name: Sparse checkout
if: env.CI_PUBLISHING_BUILD == 'true'
uses: actions/checkout@v4
with:
# We only check out what is absolutely necessary to reduce a chance of local files impacting
# integration tests, e.g. Directory.Build.props, nuget.config, ...
# integration tests
sparse-checkout: |
integration-test
.github
# Disable cone mode to avoid individual top-level files being checkout out
# e.g. Directory.Build.props, nuget.config, ...
sparse-checkout-cone-mode: false

- name: Fetch NuGet Packages
if: env.CI_PUBLISHING_BUILD == 'true'
Expand Down
Loading