Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,58 @@ jobs:
kubectl --namespace=coder-test describe all
kubectl --namespace=coder-test logs statefulset/timescale
kubectl --namespace=coder-test logs deployment/coderd

# Integration test: deploy into a local MicroShift cluster
integration-microshift:
runs-on: ubuntu-20.04
name: "integration/microshift"
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
if: github.event_name == 'pull_request'

- name: Checkout source
uses: actions/checkout@v2

- name: Install dependencies
run: ./scripts/install_deps.sh

- name: Start MicroShift cluster
uses: container-tools/microshift-action@v0.2.1

- name: Show environment data
run: |
set -x
docker ps -a
printenv
kubectl cluster-info
kubectl config view

- name: Show CWD contents
run: ls -alR .

- name: Run template
run: |
helm template coder-test . \
--create-namespace \
--namespace=coder-test \
--wait \
--debug \
--values=examples/openshift/openshift.values.yaml

- name: Install Coder
run: |
helm install coder-test . \
--create-namespace \
--namespace=coder-test \
--wait \
--debug \
--values=examples/openshift/openshift.values.yaml

- name: Get running info
if: always()
run: |
set -x
kubectl --namespace=coder-test describe all
kubectl --namespace=coder-test logs statefulset/timescale
kubectl --namespace=coder-test logs deployment/coderd