Skip to content

chore: add OpenShift integration test with MicroShift #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
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/[email protected]
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/[email protected]

- 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