Skip to content

Commit

Permalink
[CI] collecting logs for tests-simulation-scenario-k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaguin committed Oct 1, 2024
1 parent f243637 commit 1f10273
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/pr-tests-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,23 @@ jobs:
devspace version
tox -e stack.test.scenario.k8s
# todo: collect logs
- name: Collect logs
if: steps.changes.outputs.stack == 'true' && failure()
shell: bash
run: |
mkdir -p ./output-logs
if [ -d "tests/scenariosv2/.logs" ]; then
cp -R tests/scenariosv2/.logs/* ./output-logs/
else
echo "Log directory not found"
fi
- name: Upload logs to GitHub
uses: actions/upload-artifact@master
if: steps.changes.outputs.stack == 'true' && failure()
with:
name: simulation-scenario-k8s-logs-${{ matrix.os }}-${{ steps.date.outputs.date }}
path: ./output-logs/

- name: Cleanup k3d
if: steps.changes.outputs.stack == 'true' && failure()
Expand Down

0 comments on commit 1f10273

Please sign in to comment.