Skip to content

Commit

Permalink
print test logs always
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Nov 26, 2024
1 parent 5b9a483 commit 2667289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:

- name: View Test Pod Logs
run: |
TEST_POD=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].metadata.name}')
for i in {1..50}; do
STATUS=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].status.containerStatuses[0].state.terminated.reason}')
TEST_POD=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].metadata.name}')
Expand All @@ -34,6 +35,7 @@ jobs:
fi
sleep 3
done
kubectl logs $TEST_POD
- name: Inventory Down - Kind Cluster
run: make inventory-down-kind

0 comments on commit 2667289

Please sign in to comment.