@@ -28,24 +28,26 @@ jobs:
28
28
quick :
29
29
runs-on : ubuntu-20.04
30
30
steps :
31
- - name : Cancel Previous Runs
31
+ - name : Cancel previous runs
32
32
uses : styfle/cancel-workflow-action@0.9.1
33
+ if : github.event_type == 'pull_request'
33
34
34
- - uses : actions/checkout@v2
35
+ - name : Checkout source
36
+ uses : actions/checkout@v2
35
37
36
- - name : Install Dependencies
38
+ - name : Install dependencies
37
39
run : ./scripts/install_deps.sh
38
40
39
- - name : Lint Helm Chart
41
+ - name : Lint Helm chart
40
42
run : make lint/helm
41
43
42
44
- name : Check formatting and docs
43
45
run : ./scripts/fmt.sh
44
46
45
- - name : Lint Shell Scripts
47
+ - name : Lint shell scripts
46
48
run : make lint/shellcheck
47
49
48
- - name : Lint Kubernetes Templates
50
+ - name : Lint Kubernetes templates
49
51
run : make lint/kubernetes
50
52
51
53
- name : Install Go
56
58
- name : Unit tests
57
59
run : ./scripts/test_go.sh
58
60
59
- - name : Package Helm Chart
61
+ - name : Package Helm chart
60
62
run : ./scripts/package.sh
63
+
64
+ # Integration test: deploy into a local kind cluster
65
+ integration-kind :
66
+ runs-on : ubuntu-20.04
67
+ name : " integration/kind"
68
+ steps :
69
+ - name : Cancel previous runs
70
+ uses : styfle/cancel-workflow-action@0.9.1
71
+ if : github.event_type == 'pull_request'
72
+
73
+ - name : Checkout source
74
+ uses : actions/checkout@v2
75
+
76
+ - name : Install dependencies
77
+ run : ./scripts/install_deps.sh
78
+
79
+ - name : Start kind cluster
80
+ uses : container-tools/kind-action@v1
81
+
82
+ - name : Show environment data
83
+ run : |
84
+ set -x
85
+ docker ps -a
86
+ printenv
87
+ kubectl cluster-info
88
+ kubectl config view
89
+
90
+ - name : Install Coder
91
+ run : |
92
+ helm install coder-test . \
93
+ --create-namespace \
94
+ --namespace=coder-test \
95
+ --wait \
96
+ --debug \
97
+ --values=examples/kind/kind.values.yaml \
98
+ --values=examples/images.yaml \
99
+ --set=coderd.image=docker.io/coderenvs/coder-service:1.24.0 \
100
+ --set=coderd.serviceSpec.type=ClusterIP \
101
+ --set=coderd.serviceSpec.externalTrafficPolicy="" \
102
+ --set=postgres.default.image=docker.io/coderenvs/timescale:1.24.0 \
103
+ --set=envbox.image=docker.io/coderenvs/envbox:1.24.0
104
+
105
+ - name : Get running info
106
+ if : always()
107
+ run : |
108
+ set -x
109
+ kubectl --namespace=coder-test describe all
110
+ kubectl --namespace=coder-test logs statefulset/timescale
111
+ kubectl --namespace=coder-test logs deployment/coderd
0 commit comments