Skip to content

Commit

Permalink
remove kubectl steps
Browse files Browse the repository at this point in the history
Signed-off-by: JeffMboya <[email protected]>
  • Loading branch information
JeffMboya committed Sep 10, 2024
1 parent c5a9d21 commit 7b27432
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,41 +43,16 @@ jobs:
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]

- name: Set up Kubectl
uses: azure/setup-kubectl@v4
with:
version: latest
id: install_kubectl

- name: Check if Kubernetes cluster is running
if: steps.list-changed.outputs.changed == 'true' && steps.install_kubectl.outcome == 'success'
run: |
retries=10
while [ $retries -gt 0 ]; do
if kubectl get all; then
echo "Kubernetes cluster is running."
break
else
echo "Kubernetes cluster not ready, retrying in 30 seconds..."
retries=$((retries-1))
sleep 30
fi
done
if [ $retries -eq 0 ]; then
echo "Cluster did not become ready after multiple attempts."
exit 1
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: |
ct lint --target-branch ${{ github.event.repository.default_branch }} --charts charts/magistrala
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: |
ct install --target-branch ${{ github.event.repository.default_branch }} --charts charts/magistrala
ct install --target-branch ${{ github.event.repository.default_branch }}

0 comments on commit 7b27432

Please sign in to comment.