Skip to content

Commit 3af996d

Browse files
authored
ci: re-run failed test steps with debug logging enabled (#1189)
1 parent f22fe0c commit 3af996d

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,16 @@ jobs:
4848
sudo echo "127.0.0.1" `hostname` | sudo tee -a /etc/hosts
4949
5050
- name: Test with coverage report
51-
run: npm run coverage:only
52-
timeout-minutes: 10
51+
uses: nick-fields/retry@v2
52+
with:
53+
timeout_minutes: 10
54+
max_attempts: 2
55+
command: npm run coverage:only
56+
# Rerun with debug logging enabled on error, but always fail the retry
57+
new_command_on_retry: |
58+
DEBUG=node-wot* npm run test:only
59+
exit 1
60+
shell: bash
5361

5462
- name: Upload to codecov.io
5563
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)