From a1cbe89c45336db3ab9504efbb0e1d0f18002392 Mon Sep 17 00:00:00 2001 From: Fero <6863207+mikefero@users.noreply.github.com> Date: Wed, 5 Jul 2023 12:40:38 -0400 Subject: [PATCH] chore: add a GitHub action for validating Kong Gateway images This commit adds a workflow with two inputs to supply the Kong Gateway image and decK branch to test against. --- .github/workflows/validate-kong-release.yaml | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/validate-kong-release.yaml diff --git a/.github/workflows/validate-kong-release.yaml b/.github/workflows/validate-kong-release.yaml new file mode 100644 index 000000000..e374498bd --- /dev/null +++ b/.github/workflows/validate-kong-release.yaml @@ -0,0 +1,38 @@ +name: Validate Kong Gateway Release +concurrency: + group: ${{ github.workflow }} +on: + workflow_dispatch: + inputs: + kong_image: + description: 'Kong Gateway Docker Image' + required: true + default: 'kong/kong-gateway-dev:latest' + branch: + description: 'decK Branch' + required: true + default: 'main' +jobs: + integration: + name: "Validating Kong Gateway ${{ inputs.kong_image }} against decK branch ${{ inputs.branch }}" + env: + KONG_ANONYMOUS_REPORTS: "off" + KONG_IMAGE: ${{ inputs.kong_image }} + runs-on: ubuntu-latest + steps: + - name: Execution Information + run: | + echo "Kong Gateway Image = ${{ inputs.kong_image }}" + echo "decK Branch = ${{ inputs.branch }}" + - name: Setup go + uses: actions/setup-go@v4 + with: + go-version: '^1.20' + - name: Checkout repository + uses: actions/checkout@v3 + with: + ref: ${{ inputs.branch }} + - name: Setup Kong + run: make setup-kong + - name: Run integration tests + run: make test-integration