From 74b01714cf74c58336ed91a11b8ca8e183cb83e9 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..2d2a2d469b 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.repository.fork == false || 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 8cac0f2694..0e108ff04c 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.repository.fork == false || inputs.image != 'plus' }} env: DOCKER_BUILD_SUMMARY: false steps: diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index f789df7514..6f59888466 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 == false || inputs.image != 'plus') }} steps: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2