Skip to content

Commit

Permalink
ci: add upload failed test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewang committed Apr 3, 2024
1 parent 48452cd commit 6ab0df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ jobs:
id: test
run: |
curl -fs -X POST -H "Content-Type: application/octet-stream" --data-binary "@ci/bytecode" "http://detector:8001/update/policy"
env DETECTOR_IP=$(dig detector +short) prove -r t/; cat t/servroot/logs/error.log
env DETECTOR_IP=$(dig detector +short) prove -r t/
- name: Upload failed test logs
if: ${{ steps.test.outcome == 'failure' }}
if: ${{ steps.test.outcome != 'success' }}
uses: actions/upload-artifact@v4
with:
name: test-logs
Expand Down

0 comments on commit 6ab0df4

Please # to comment.