Skip to content

Commit 9fb7b33

Browse files
authored
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.
1 parent 581fd74 commit 9fb7b33

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/conformance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
conformance-tests:
2525
name: Run Tests
2626
runs-on: ubuntu-24.04
27+
if: ${{ !github.event.pull_request.head.repo.fork || inputs.image != 'plus' }}
2728
permissions:
2829
contents: write # needed for uploading release artifacts
2930
env:

.github/workflows/functional.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
functional-tests:
2222
name: Run Tests
2323
runs-on: ubuntu-24.04
24+
if: ${{ !github.event.pull_request.head.repo.fork || inputs.image != 'plus' }}
2425
env:
2526
DOCKER_BUILD_SUMMARY: false
2627
steps:

.github/workflows/helm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
helm-tests-local:
1818
name: Helm Tests Local
1919
runs-on: ubuntu-24.04
20-
if: ${{ github.event_name != 'schedule' }}
20+
if: ${{ github.event_name != 'schedule' && (!github.event.pull_request.head.repo.fork || inputs.image != 'plus') }}
2121
steps:
2222
- name: Checkout Repository
2323
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)