Skip to content

Commit

Permalink
ci: re-run failed test steps with debug logging enabled (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb authored Dec 13, 2023
1 parent f22fe0c commit 3af996d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,16 @@ jobs:
sudo echo "127.0.0.1" `hostname` | sudo tee -a /etc/hosts
- name: Test with coverage report
run: npm run coverage:only
timeout-minutes: 10
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 2
command: npm run coverage:only
# Rerun with debug logging enabled on error, but always fail the retry
new_command_on_retry: |
DEBUG=node-wot* npm run test:only
exit 1
shell: bash

- name: Upload to codecov.io
uses: codecov/codecov-action@v2
Expand Down

0 comments on commit 3af996d

Please sign in to comment.