Skip to content

Commit

Permalink
feat(ci): test binary against kind cluster using github actions (#155)
Browse files Browse the repository at this point in the history
* feat(ci): test binary against kind cluster using github actions

* change workflow approver

* wait for deployment to be healthy

* tidy up workflow
  • Loading branch information
glitchcrab authored Mar 20, 2024
1 parent 8a1874f commit d4288f9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,24 @@ jobs:
run: go build -o sonar
- name: 'run built binary'
run: ./sonar version
- name: 'wait for approval'
uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: glitchcrab
minimum-approvals: 1
issue-title: "Approval required for testing in KinD"
issue-body: "Please approve or deny creation of a KinD cluster for testing"
exclude-workflow-initiator-as-approver: false
- name: 'create kind cluster'
uses: helm/kind-action@v1
with:
cluster_name: 'sonar-test'
- name: 'test deploying with sonar'
run: ./sonar create -n default -N ci-test -i glitchcrab/ubuntu-debug
- name: 'wait for deployment to start'
uses: jupyterhub/action-k8s-await-workloads@v3
with:
workloads: "deploy/sonar-ci-test"
namespace: "default"
timeout: 60

0 comments on commit d4288f9

Please sign in to comment.