Skip to content

Commit 32071bb

Browse files
committed
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.
1 parent 581fd74 commit 32071bb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ jobs:
234234
"${{ needs.vars.outputs.min_k8s_version }}",
235235
"${{ needs.vars.outputs.k8s_latest }}",
236236
]
237+
isFork:
238+
- ${{ github.event.repository.fork == true }}
239+
exclude:
240+
- {isFork: true}
241+
include:
242+
- {image: nginx}
237243
uses: ./.github/workflows/functional.yml
238244
with:
239245
image: ${{ matrix.image }}
@@ -255,6 +261,12 @@ jobs:
255261
"${{ needs.vars.outputs.k8s_latest }}",
256262
]
257263
enable-experimental: [true, false]
264+
isFork:
265+
- ${{ github.event.repository.fork == true }}
266+
exclude:
267+
- {isFork: true}
268+
include:
269+
- {image: nginx}
258270
uses: ./.github/workflows/conformance.yml
259271
with:
260272
image: ${{ matrix.image }}
@@ -276,6 +288,12 @@ jobs:
276288
"${{ needs.vars.outputs.min_k8s_version }}",
277289
"${{ needs.vars.outputs.k8s_latest }}",
278290
]
291+
isFork:
292+
- ${{ github.event.repository.fork == true }}
293+
exclude:
294+
- {isFork: true}
295+
include:
296+
- {image: nginx}
279297
uses: ./.github/workflows/helm.yml
280298
with:
281299
image: ${{ matrix.image }}

0 commit comments

Comments
 (0)