Skip to content

Commit 086246b

Browse files
authored
Update github actions and improve ci logging (#187)
* Feature/update gh actions (#4) * Update gh actions for nodejs16 Signed-off-by: thepetk <[email protected]> * Further updates on gh actions versions Signe-off-by: thepetk <[email protected]> Signed-off-by: thepetk <[email protected]> --------- Signed-off-by: thepetk <[email protected]> * Add detailed logging for crashLoopBackOff cases Signed-off-by: thepetk <[email protected]> * Update github-action and increase memory Signed-off-by: thepetk <[email protected]> * Revert update in kubernetes Signed-off-by: thepetk <[email protected]> --------- Signed-off-by: thepetk <[email protected]>
1 parent a95cc88 commit 086246b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.ci/run_tests_minikube_linux.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ helm install devfile-registry ./deploy/chart/devfile-registry --set global.ingre
3030
# Wait for the registry to become ready
3131
kubectl wait deploy/devfile-registry --for=condition=Available --timeout=600s
3232
if [ $? -ne 0 ]; then
33-
kubectl get pods
33+
# Return the logs of the 3 containers in case the condition is not met
34+
echo "devfile-registry container logs:"
35+
kubectl logs -l app=devfile-registry --container devfile-registry
36+
echo "oci-registry container logs:"
37+
kubectl logs -l app=devfile-registry --container oci-registry
38+
echo "registry-viewer container logs:"
39+
kubectl logs -l app=devfile-registry --container registry-viewer
40+
# Return the description of every pod
3441
kubectl describe pods
3542
exit 1
3643
fi

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ jobs:
129129
with:
130130
go-version: 1.18
131131
- name: Setup Minikube
132-
uses: manusa/actions-setup-minikube@v2.7.1
132+
uses: manusa/actions-setup-minikube@3856c6fa039819f1c8e7e248b1fc5a8564e354c9 # v2.9.0
133133
with:
134-
minikube version: 'v1.21.0'
134+
minikube version: 'v1.31.2'
135135
kubernetes version: 'v1.21.0'
136136
driver: 'docker'
137137
github token: ${{ secrets.GITHUB_TOKEN }}
138-
start args: '--addons=ingress'
138+
start args: '--addons=ingress --memory 4096 --cpus 2'
139139
- name: Run the devfile registry integration tests
140140
run: |
141141
export GOPATH=$(go env GOPATH)

0 commit comments

Comments
 (0)