Skip to content

Commit

Permalink
chore(ci): make release e2e tests run in parallel jobs (#4346)
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo authored Jul 14, 2023
1 parent 923d9ed commit 0fda6b5
Showing 1 changed file with 9 additions and 39 deletions.
48 changes: 9 additions & 39 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0fda6b5

Please sign in to comment.