Skip to content

Commit

Permalink
chore: cluster log (#2321)
Browse files Browse the repository at this point in the history
Save logs as an GH artifact

Signed-off-by: Matej Vašek <[email protected]>
  • Loading branch information
matejvasek authored May 23, 2024
1 parent 619be59 commit 3db3af9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/test-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@ jobs:
- name: Dump Cluster Logs
if: always()
run: |
echo "::group::cluster events"
kubectl get events -A
echo "::endgroup::"
echo "::group::cluster events" >> cluster_log.txt
kubectl get events -A >> cluster_log.txt 2>&1
echo "::endgroup::" >> cluster_log.txt
echo "::group::cluster containers logs"
stern '.*' --all-namespaces --no-follow
echo "::endgroup::"
echo "::group::cluster containers logs" >> cluster_log.txt
stern '.*' --all-namespaces --no-follow >> cluster_log.txt 2>&1
echo "::endgroup::" >> cluster_log.txt
- name: "Archive log results"
if: always()
uses: actions/upload-artifact@v4
with:
name: cluster-logs
path: ./cluster_log.txt
retention-days: 7
- uses: codecov/codecov-action@v4
with:
files: ./coverage.txt
Expand Down

0 comments on commit 3db3af9

Please sign in to comment.