Skip to content

Commit

Permalink
test: Automate E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjjaramillo committed Jun 17, 2024
1 parent 2820723 commit 4ec8b92
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: read

jobs:
tests:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -47,6 +47,28 @@ jobs:
with:
files: ./tmp/cover.out

e2e-tests:
name: E2E tests
runs-on: ubuntu-latest
strategy:
max-parallel: 6 # len(k8sVersion)/2 is a good number to have here
matrix:
# Latest patch version can be found in https://github.com/kubernetes/website/blob/main/content/en/releases/patch-releases.md
# Some versions might not be available yet in https://storage.googleapis.com/kubernetes-release/release/v1.X.Y/bin/linux/amd64/kubelet
k8sVersion: [ "v1.30.1", "v1.29.5", "v1.28.3", "v1.27.5", "v1.26.8" ]
steps:
- name: Checkout GitHub Repository
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5

- name: Download minikube
run: |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
- name: Run E2E tests
run: |
tests/e2e/e2e-tests.sh --k8s_version ${{ matrix.k8sVersion }} --license_key ${{ secrets.K8S_AGENTS_E2E_LICENSE_KEY }} --run_tests
build:
name: Build Docker image
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4ec8b92

Please sign in to comment.