Skip to content

Commit d5150b1

Browse files
committed
chore(ci): Ensure all tests run when running CI outside of PR env
1 parent cae19af commit d5150b1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ jobs:
402402
job_nextjs_integration_test:
403403
name: Test @sentry/nextjs on (Node ${{ matrix.node }})
404404
needs: [job_get_metadata, job_build]
405-
if: ${{ needs.job_get_metadata.outputs.changed_nextjs == 'true' }}
405+
if: ${{ needs.job_get_metadata.outputs.changed_nextjs == 'true' }} || ${{ github.event_name != 'pull_request' }}
406406
continue-on-error: true
407407
timeout-minutes: 30
408408
runs-on: ubuntu-latest
@@ -440,7 +440,7 @@ jobs:
440440
job_ember_tests:
441441
name: Test @sentry/ember
442442
needs: [job_get_metadata, job_build]
443-
if: ${{ needs.job_get_metadata.outputs.changed_ember == 'true' }}
443+
if: ${{ needs.job_get_metadata.outputs.changed_ember == 'true' }} || ${{ github.event_name != 'pull_request' }}
444444
continue-on-error: true
445445
timeout-minutes: 10
446446
runs-on: ubuntu-latest
@@ -482,7 +482,9 @@ jobs:
482482
job_browser_playwright_tests:
483483
name: Playwright - ${{ (matrix.tracing_only && 'Browser + Tracing') || 'Browser' }} (${{ matrix.bundle }})
484484
needs: [job_get_metadata, job_build]
485-
if: ${{ needs.job_get_metadata.outputs.changed_browser_integration == 'true' }}
485+
if:
486+
${{ needs.job_get_metadata.outputs.changed_browser_integration == 'true' }} || ${{ github.event_name !=
487+
'pull_request' }}
486488
runs-on: ubuntu-latest
487489
strategy:
488490
matrix:
@@ -534,7 +536,7 @@ jobs:
534536
job_browser_integration_tests:
535537
name: Old Browser Integration Tests (${{ matrix.browser }})
536538
needs: [job_get_metadata, job_build]
537-
if: ${{ needs.job_get_metadata.outputs.changed_browser == 'true' }}
539+
if: ${{ needs.job_get_metadata.outputs.changed_browser == 'true' }} || ${{ github.event_name != 'pull_request' }}
538540
runs-on: ubuntu-latest
539541
timeout-minutes: 10
540542
continue-on-error: true
@@ -608,7 +610,7 @@ jobs:
608610
job_node_integration_tests:
609611
name: Node SDK Integration Tests (${{ matrix.node }})
610612
needs: [job_get_metadata, job_build]
611-
if: ${{ needs.job_get_metadata.outputs.changed_node == 'true' }}
613+
if: ${{ needs.job_get_metadata.outputs.changed_node == 'true' }} || ${{ github.event_name != 'pull_request' }}
612614
runs-on: ubuntu-latest
613615
timeout-minutes: 10
614616
continue-on-error: true
@@ -644,7 +646,7 @@ jobs:
644646
job_remix_integration_tests:
645647
name: Remix SDK Integration Tests (${{ matrix.node }})
646648
needs: [job_get_metadata, job_build]
647-
if: ${{ needs.job_get_metadata.outputs.changed_remix == 'true' }}
649+
if: ${{ needs.job_get_metadata.outputs.changed_remix == 'true' }} || ${{ github.event_name != 'pull_request' }}
648650
runs-on: ubuntu-latest
649651
timeout-minutes: 10
650652
continue-on-error: true

0 commit comments

Comments
 (0)