Skip to content

Commit eb29e29

Browse files
authored
ci: Ensure nextjs & node tests only run when files change (#6304)
1 parent 3b7ce16 commit eb29e29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ jobs:
386386
job_nextjs_integration_test:
387387
name: Test @sentry/nextjs on (Node ${{ matrix.node }})
388388
needs: [job_get_metadata, job_build]
389-
# Currently always runs because it is required for merging PRs
389+
if: needs.job_get_metadata.outputs.changed_nextjs == 'true' || github.event_name != 'pull_request'
390390
timeout-minutes: 30
391391
runs-on: ubuntu-latest
392392
strategy:
@@ -585,7 +585,7 @@ jobs:
585585
job_node_integration_tests:
586586
name: Node SDK Integration Tests (${{ matrix.node }})
587587
needs: [job_get_metadata, job_build]
588-
# Currently always runs because it is required for merging PRs
588+
if: needs.job_get_metadata.outputs.changed_node == 'true' || github.event_name != 'pull_request'
589589
runs-on: ubuntu-latest
590590
timeout-minutes: 10
591591
strategy:

0 commit comments

Comments
 (0)