From 9fb7b334ad49ccded5e6f8dd2ecb49c5d53f260f Mon Sep 17 00:00:00 2001 From: Saylor Berman Date: Wed, 20 Nov 2024 12:28:45 -0500 Subject: [PATCH] Skip plus tests on a fork (#2784) Problem: The NGINX Plus JWT is only available on the upstream repo, so automated tests for Plus can't be run on forks. Solution: Skip these test runs on a fork. --- .github/workflows/conformance.yml | 1 + .github/workflows/functional.yml | 1 + .github/workflows/helm.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index 9163ee683..d91001f0c 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -24,6 +24,7 @@ jobs: conformance-tests: name: Run Tests runs-on: ubuntu-24.04 + if: ${{ !github.event.pull_request.head.repo.fork || inputs.image != 'plus' }} permissions: contents: write # needed for uploading release artifacts env: diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 8cac0f269..13fe8aa97 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -21,6 +21,7 @@ jobs: functional-tests: name: Run Tests runs-on: ubuntu-24.04 + if: ${{ !github.event.pull_request.head.repo.fork || inputs.image != 'plus' }} env: DOCKER_BUILD_SUMMARY: false steps: diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index f789df751..9edba640f 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -17,7 +17,7 @@ jobs: helm-tests-local: name: Helm Tests Local runs-on: ubuntu-24.04 - if: ${{ github.event_name != 'schedule' }} + if: ${{ github.event_name != 'schedule' && (!github.event.pull_request.head.repo.fork || inputs.image != 'plus') }} steps: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2