diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..766d85e --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,52 @@ +name: Build Test + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + + # Install Tools + - name: Install Miscellaneous Tools + uses: alexellis/arkade-get@493cf9387f80dcbf8a85786c55e04de45c927a5c + with: + kubectl: v1.30.2 + kustomize: v5.3.0 + helm: v3.16.1 + helmfile: v0.161.0 + k3d: v5.7.3 + + - name: Create k3d Cluster + run: k3d cluster create temp + + - name: Apply Base Manifests Into the Cluster + run: make + + - name: Apply dora manifests + run: make dora + + - name: Apply trace + run: make traces + + # - name: Wait For Jobs to Complete + # run: | + # kubectl wait \ + # --for=condition=complete job --all -A \ + # --timeout 4m + + # wait for jobs to be done before checking pod status. + - name: Wait for Jobs to be Complete + run: sleep 10 + + - name: Wait For Pods to be Ready + run: | + kubectl get pods -A + kubectl wait \ + --for=condition=ready pod --all -A \ + --field-selector=status.phase!=Succeeded \ + --timeout 4m \ No newline at end of file