Skip to content

Commit

Permalink
run e2e in github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal committed Dec 17, 2023
1 parent 9e8424e commit 2a90f45
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: pull_request

jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
k3s_version: ["v1.26.11+k3s2"]
#,"v1.27.8+k3s2","v1.28.4+k3s2"]
steps:
- name: Setup Kubernetes
run: curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION="${{ matrix.k3s_version }}" K3S_KUBECONFIG_MODE=777 sh -
- run: kubectl --kubeconfig=/etc/rancher/k3s/k3s.yaml get no
- run: kubectl --kubeconfig=/etc/rancher/k3s/k3s.yaml get po --all-namespaces
- run: kubectl --kubeconfig=/etc/rancher/k3s/k3s.yaml get no --no-headers
- run: kubectl --kubeconfig=/etc/rancher/k3s/k3s.yaml get no --no-headers | awk '{print $1}'
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.21'
#- name: Run tests
# run: make e2e KUBECONFIG=/etc/rancher/k3s/k3s.yaml node=$(kubectl get no --no-headers | awk '{print $1}' | tail -1)

0 comments on commit 2a90f45

Please sign in to comment.