Skip to content

run e2e in github actions #2

run e2e in github actions

run e2e in github actions #2

Workflow file for this run

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 get no
- run: kubectl get po --all-namespaces
- run: kubectl get no --no-headers
- run: kubectl 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)