diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67d8e05e..87a932a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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