Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/actions/run-fantom-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ runs:
run: |
for attempt in 1 2 3; do
echo "Attempt $attempt of 3"
if yarn fantom; then
exit 0
if [ "$attempt" -eq 1 ]; then
if yarn fantom; then
exit 0
fi
else
if yarn fantom --onlyFailures; then
exit 0
fi
fi
if [ "$attempt" -lt 3 ]; then
echo "Attempt $attempt failed. Retrying..."
echo "Attempt $attempt failed. Retrying only failed tests..."
fi
done
echo "All 3 attempts failed."
Expand Down
Loading