Skip to content

Commit

Permalink
Skip plus tests on a fork (#2784)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sjberman authored Nov 20, 2024
1 parent 581fd74 commit 9fb7b33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fb7b33

Please sign in to comment.