From c401ab2aef2626eb3d18d259abd76e1072b15c9f Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Fri, 25 Nov 2022 13:42:36 +0100 Subject: [PATCH] ci: Ensure nextjs & node tests only run when files change --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5990eaf31ecd..5620ef9e52dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -386,7 +386,7 @@ jobs: job_nextjs_integration_test: name: Test @sentry/nextjs on (Node ${{ matrix.node }}) needs: [job_get_metadata, job_build] - # Currently always runs because it is required for merging PRs + if: needs.job_get_metadata.outputs.changed_nextjs == 'true' || github.event_name != 'pull_request' timeout-minutes: 30 runs-on: ubuntu-latest strategy: @@ -585,7 +585,7 @@ jobs: job_node_integration_tests: name: Node SDK Integration Tests (${{ matrix.node }}) needs: [job_get_metadata, job_build] - # Currently always runs because it is required for merging PRs + if: needs.job_get_metadata.outputs.changed_node == 'true' || github.event_name != 'pull_request' runs-on: ubuntu-latest timeout-minutes: 10 strategy: