Skip to content

Commit

Permalink
check logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Aug 12, 2024
1 parent 0d17aa4 commit b811fbb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,20 @@ jobs:
kubectl get all --all-namespaces
kubectl describe pod
- name: Collect logs from all containers
if: always() && steps.helm_install.outcome != 'skipped'
run: |
mkdir -p logs
for pod in $(kubectl get pods -n default -o jsonpath='{.items[*].metadata.name}'); do
kubectl logs $pod -n default > logs/${pod}.log
done
- name: Upload logs as artifact
if: always() && steps.helm_install.outcome != 'skipped'
uses: actions/upload-artifact@v3
with:
name: k8s-logs
path: logs

- name: Run helm test
id: helm_test
run: helm test acs
Expand Down

0 comments on commit b811fbb

Please sign in to comment.