@@ -183,10 +183,7 @@ jobs:
183183 name : ${{ matrix.target || runner.os }}-verify-test-results
184184 path : " **/*.received.*"
185185
186- # To save time and disk space, we only create and archive the NuGet packages when we're actually releasing.
187-
188186 - name : Create NuGet Packages
189- if : env.CI_PUBLISHING_BUILD == 'true'
190187 run : dotnet pack Sentry-CI-Build-${{ matrix.target || runner.os }}.slnf -c Release --no-build --nologo
191188
192189 - name : Archive NuGet Packages
@@ -199,44 +196,24 @@ jobs:
199196 src/**/Release/*.nupkg
200197 src/**/Release/*.snupkg
201198
202- integration-test :
203- needs : build
204- name : Integration test (${{ matrix.container || matrix.os }})
205- runs-on : ${{ matrix.os }}
206- container : ${{ matrix.container }}
207-
208- strategy :
209- fail-fast : false
210- matrix :
211- include :
212- - os : ubuntu-22.04 # Pin ubuntu to ensure mono is installed
213- - os : ubuntu-22.04-arm
214- - os : ubuntu-latest
215- container : ghcr.io/getsentry/sentry-dotnet-alpine:3.21
216- - os : macos-15 # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703
217- - os : windows-latest
218- - os : windows-11-arm
219-
220- steps :
221- - uses : actions/checkout@v4
199+ - name : Sparse checkout
200+ if : env.CI_PUBLISHING_BUILD == 'true'
201+ uses : actions/checkout@v4
222202 with :
223203 # We only check out what is absolutely necessary to reduce a chance of local files impacting
224204 # integration tests, e.g. Directory.Build.props, nuget.config, ...
225205 sparse-checkout : |
226- Directory.Build.props
227206 integration-test
228207 .github
229208
230209 - name : Fetch NuGet Packages
210+ if : env.CI_PUBLISHING_BUILD == 'true'
231211 uses : actions/download-artifact@v4
232212 with :
233213 name : ${{ github.sha }}
234214 path : src
235215
236- - name : Setup Environment
237- uses : ./.github/actions/environment
238-
239- - name : Test
216+ - name : Integration test
240217 uses : getsentry/github-workflows/sentry-cli/integration-test/@v2
241218 with :
242219 path : integration-test
0 commit comments