-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): make release e2e tests run in parallel jobs (#4346)
- Loading branch information
Showing
1 changed file
with
9 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ on: | |
jobs: | ||
verify-manifest-tag: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
fullversion_tag: ${{ steps.semver_parser.outputs.fullversion }} | ||
steps: | ||
- uses: mukunku/[email protected] | ||
id: check-tag | ||
|
@@ -129,46 +131,14 @@ jobs: | |
TAG=${{ steps.meta.outputs.version }} | ||
COMMIT=${{ github.sha }} | ||
REPO_INFO=https://github.com/${{ github.repository }}.git | ||
test-e2e: | ||
runs-on: ubuntu-latest | ||
needs: build-push-images | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
kubernetes-version: | ||
- 'v1.22.17' | ||
- 'v1.23.17' | ||
- 'v1.24.15' | ||
- 'v1.25.11' | ||
- 'v1.26.6' | ||
- 'v1.27.3' | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup golang | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '^1.20' | ||
- uses: Kong/kong-license@master | ||
id: license | ||
with: | ||
password: ${{ secrets.PULP_PASSWORD }} | ||
- name: Parse semver string | ||
id: semver_parser | ||
uses: booxmedialtd/[email protected] | ||
with: | ||
input_string: ${{ github.event.inputs.tag }} | ||
version_extractor_regex: 'v(.*)$' | ||
- name: e2e - ${{ matrix.kubernetes-version }} | ||
run: make test.e2e | ||
env: | ||
TEST_KONG_CONTROLLER_IMAGE_OVERRIDE: "kong/kubernetes-ingress-controller:${{ steps.semver_parser.outputs.fullversion }}" | ||
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }} | ||
KONG_CLUSTER_VERSION: ${{ matrix.kubernetes-version }} | ||
NCPU: 1 # it was found that github actions (specifically) did not seem to perform well when spawning | ||
# multiple kind clusters within a single job, so only 1 is allowed at a time. | ||
needs: [verify-manifest-tag, build-push-images] | ||
uses: ./.github/workflows/_e2e_tests.yaml | ||
secrets: inherit | ||
with: | ||
kic-image: kong/kubernetes-ingress-controller:${{ needs.verify-manifest-tag.outputs.fullversion_tag }} | ||
all-supported-k8s-versions: true | ||
|
||
publish-release: | ||
runs-on: ubuntu-latest | ||
|