Skip to content

Commit

Permalink
Run e2e tests on multiple kubernetes versions (argoproj#2380)
Browse files Browse the repository at this point in the history
closes argoproj#2171

Use k3s release channel per kubernetes minor version (see
https://get.k3s.io/ `INSTALL_K3S_CHANNEL_URL` & `INSTALL_K3S_CHANNEL`)

Signed-off-by: Thomas Riccardi <[email protected]>

Signed-off-by: Thomas Riccardi <[email protected]>
  • Loading branch information
thomas-riccardi authored and jandersen-plaid committed Nov 8, 2022
1 parent 2845399 commit 55c25a8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
name: Event File
path: ${{ github.event_path }}
test-e2e:
strategy:
fail-fast: false
matrix:
kubernetes-minor-version:
- 1.23
- 1.24
name: Run end-to-end tests
runs-on: ubuntu-latest
steps:
Expand All @@ -43,6 +49,8 @@ jobs:
go-version: 1.19
- uses: actions/[email protected]
- name: Setup k3s
env:
INSTALL_K3S_CHANNEL: v${{ matrix.kubernetes-minor-version }}
run: |
curl -sfL https://get.k3s.io | sh -
sudo mkdir ~/.kube
Expand Down Expand Up @@ -77,12 +85,12 @@ jobs:
if: always()
uses: actions/upload-artifact@v2
with:
name: E2E Test Results
name: E2E Test Results (k8s ${{ matrix.kubernetes-minor-version }})
path: |
junit.xml
- name: Upload e2e-controller logs
uses: actions/upload-artifact@v2
with:
name: e2e-controller-k8s.log
name: e2e-controller-k8s-${{ matrix.kubernetes-minor-version }}.log
path: /tmp/e2e-controller.log
if: ${{ failure() }}

0 comments on commit 55c25a8

Please sign in to comment.