Skip to content

Commit 9d54c4e

Browse files
authored
Merge pull request #115 from justinsb/githubactions
Kind e2e test using github actions
2 parents 9cadd1e + 946b701 commit 9d54c4e

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/kind-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: Cluster
2+
apiVersion: kind.x-k8s.io/v1alpha4
3+
nodes:
4+
- role: control-plane
5+
- role: worker

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,24 @@ jobs:
3232
echo "${files}"
3333
exit 1
3434
fi
35+
36+
kind-e2e:
37+
name: Test with a Kind cluster
38+
runs-on: [ubuntu-latest]
39+
steps:
40+
- uses: actions/checkout@v1
41+
- uses: actions/setup-go@v1
42+
with:
43+
go-version: 1.14
44+
- name: Install latest version of Kind
45+
run: |
46+
GO111MODULE=on go get sigs.k8s.io/kind
47+
- name: Create Kind cluster
48+
run: |
49+
PATH=$(go env GOPATH)/bin:$PATH kind create cluster --config .github/workflows/kind-config.yaml
50+
- name: Run some sanity checks
51+
# kubectl is already installed on the Github Ubuntu worker
52+
run: |
53+
kubectl get nodes -o wide
54+
kubectl get pods --all-namespaces -o wide
55+
kubectl get services --all-namespaces -o wide

0 commit comments

Comments
 (0)