Skip to content

Commit 2943603

Browse files
Copilotmathetake
andcommitted
Add test_e2e_upgrade job to GitHub workflow
Co-authored-by: mathetake <[email protected]>
1 parent 76660b2 commit 2943603

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,43 @@ jobs:
254254
- uses: docker/setup-buildx-action@v3
255255
- run: make test-e2e-inference-extension
256256

257+
test_e2e_upgrade:
258+
name: E2E Test for Upgrade (Envoy Gateway ${{ matrix.name }})
259+
# TODO: make it possible to run this job on macOS as well, which is a bit tricky due to the nested
260+
# virtualization is not supported on macOS runners.
261+
# E.g. Use https://github.com/douglascamata/setup-docker-macos-action per the comment in
262+
# https://github.com/actions/runner-images/issues/17#issuecomment-1971073406
263+
runs-on: ubuntu-latest
264+
strategy:
265+
fail-fast: false
266+
matrix:
267+
include:
268+
- name: latest
269+
envoy_gateway_version: v0.0.0-latest
270+
- name: v1.5.0
271+
envoy_gateway_version: v1.5.0
272+
steps:
273+
- uses: actions/checkout@v4
274+
- uses: actions/setup-go@v5
275+
with:
276+
cache: false
277+
go-version-file: go.mod
278+
- uses: actions/cache@v4
279+
with:
280+
path: |
281+
~/.cache/go-build
282+
~/.cache/golangci-lint
283+
~/go/pkg/mod
284+
~/go/bin
285+
key: e2e-test-${{ hashFiles('**/go.mod', '**/go.sum', '**/Makefile') }}
286+
- uses: docker/setup-buildx-action@v3
287+
- run: make test-e2e-upgrade
288+
257289
docker_push:
258290
# Docker builds are verified in test_e2e job, so we only need to push the images when the event is a push event.
259291
if: github.event_name == 'push'
260292
name: Push Docker Images
261-
needs: [unittest, test_crdcel, test_controller, test_extproc, test_e2e]
293+
needs: [unittest, test_crdcel, test_controller, test_extproc, test_e2e, test_e2e_inference_extension, test_e2e_upgrade]
262294
uses: ./.github/workflows/docker_build_job.yaml
263295
secrets: inherit
264296

0 commit comments

Comments
 (0)