generated from replicatedhq/krew-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
84 lines (72 loc) · 2.35 KB
/
e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: E2E Test
on:
push:
branches:
- "master"
paths:
- '**.go'
- '**.yaml'
- '**.mod'
pull_request:
paths:
- '**.go'
- '**.yaml'
- '**.mod'
env:
# Common versions
GO_VERSION: '1.18'
jobs:
kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Go build
run: |
make bin
- name: Setup Kind
uses: engineerd/[email protected]
with:
version: "v0.11.1"
- name: Test Check
run: |
kubectl cluster-info
kubectl get pods -n kube-system
echo "current-context:" $(kubectl config current-context)
- name: Test Interactive
run: |
echo "********************************************************************************"
echo "Test Installation..."
echo "********************************************************************************"
kubectl create deployment nginx --image=nginx
bin/pod-lens
- name: Test Deployments
run: |
echo "********************************************************************************"
echo "Test Deployments..."
echo "********************************************************************************"
make e2e-deployment
- name: Test StatefulSets
run: |
echo "********************************************************************************"
echo "Test StatefulSets..."
echo "********************************************************************************"
kubectl apply -f e2e/statefulset.yaml
kubectl rollout status statefulset/web
bin/pod-lens web-0
- name: Test DaemonSet
run: |
echo "********************************************************************************"
echo "Test DaemonSet..."
echo "********************************************************************************"
kubectl apply -f e2e/daemonset.yaml
kubectl rollout status daemonset/my-daemonset
bin/pod-lens my-daemonset-*