-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: JeffMboya <[email protected]>
- Loading branch information
Showing
1 changed file
with
5 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |