Skip to content

Commit db912a4

Browse files
committed
chore: add OpenShift integration test with MicroShift
1 parent 12a7e84 commit db912a4

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/build.yml

+49
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,52 @@ jobs:
109109
kubectl --namespace=coder-test describe all
110110
kubectl --namespace=coder-test logs statefulset/timescale
111111
kubectl --namespace=coder-test logs deployment/coderd
112+
113+
# Integration test: deploy into a local MicroShift cluster
114+
integration-microshift:
115+
runs-on: ubuntu-20.04
116+
name: "integration/microshift"
117+
steps:
118+
- name: Cancel previous runs
119+
uses: styfle/[email protected]
120+
if: github.event_type == 'pull_request'
121+
122+
- name: Checkout source
123+
uses: actions/checkout@v2
124+
125+
- name: Install dependencies
126+
run: ./scripts/install_deps.sh
127+
128+
- name: Start MicroShift cluster
129+
uses: container-tools/[email protected]
130+
131+
- name: Show environment data
132+
run: |
133+
set -x
134+
docker ps -a
135+
printenv
136+
kubectl cluster-info
137+
kubectl config view
138+
139+
- name: Install Coder
140+
run: |
141+
helm install coder-test . \
142+
--create-namespace \
143+
--namespace=coder-test \
144+
--wait \
145+
--debug \
146+
--values=examples/openshift/openshift.values.yaml \
147+
--values=examples/images.yaml \
148+
--set=coderd.image=docker.io/coderenvs/coder-service:1.24.0 \
149+
--set=coderd.serviceSpec.type=ClusterIP \
150+
--set=coderd.serviceSpec.externalTrafficPolicy="" \
151+
--set=postgres.default.image=docker.io/coderenvs/timescale:1.24.0 \
152+
--set=envbox.image=docker.io/coderenvs/envbox:1.24.0
153+
154+
- name: Get running info
155+
if: always()
156+
run: |
157+
set -x
158+
kubectl --namespace=coder-test describe all
159+
kubectl --namespace=coder-test logs statefulset/timescale
160+
kubectl --namespace=coder-test logs deployment/coderd

0 commit comments

Comments
 (0)