Skip to content

Commit c2d2d26

Browse files
authored
Improve E2E test with debugging and checking running pods (#16)
1 parent 7393a76 commit c2d2d26

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,12 @@ jobs:
4545

4646
- name: Wait for a while with the running pods
4747
run: sleep 60
48+
- name: Check cluster pods
49+
run: kubectl get pods -A
50+
51+
- name: Show logs from Vector pod for debugging
52+
run: kubectl logs -l app.kubernetes.io/name=vector
53+
54+
- name: Check if all pods are running
55+
run: kubectl get pods -A -o jsonpath='{range .items[*]}{.status.phase}{"\n"}{end}' | grep -qv "^Running$" && echo "Not all pods are running" && exit 1 || echo "OK"
4856

0 commit comments

Comments
 (0)