From 46ec3d89d8a65aa2a0dc3fd59fb7fe2d44f70acb Mon Sep 17 00:00:00 2001 From: Saylor Berman Date: Tue, 19 Nov 2024 13:48:50 -0700 Subject: [PATCH] Skip plus tests on a fork 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 9163ee683a..45c1feb852 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -23,6 +23,7 @@ permissions: jobs: conformance-tests: name: Run Tests + if: ${{ !(github.event.repository.fork == true && inputs.image == 'plus') }} runs-on: ubuntu-24.04 permissions: contents: write # needed for uploading release artifacts diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 8cac0f2694..c7136a82f7 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -20,6 +20,7 @@ permissions: jobs: functional-tests: name: Run Tests + if: ${{ !(github.event.repository.fork == true && inputs.image == 'plus') }} runs-on: ubuntu-24.04 env: DOCKER_BUILD_SUMMARY: false diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index f789df7514..8e65cf6df8 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.repository.fork == true && inputs.image == 'plus') }} steps: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2