From 141b72844f957dc617876988ceb1f04a1e72ec18 Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Fri, 2 Aug 2024 10:53:44 -0400 Subject: [PATCH] ci: skip int and sample tests from forks (#381) --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 523821e9..d315e55c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -119,6 +119,10 @@ jobs: system-tests: name: System tests + # run integration tests on all builds except pull requests from forks or dependabot + if: | + github.event_name != 'pull_request' || + (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') strategy: matrix: node-version: [v14.x, v16.x, v20.x] @@ -265,6 +269,10 @@ jobs: sample-tests: name: Sample tests + # run sample tests on all builds except pull requests from forks or dependabot + if: | + github.event_name != 'pull_request' || + (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') permissions: contents: read id-token: write