Skip to content

Commit 91b34c0

Browse files
committed
Adding retry for acceptance if fails
1 parent a58cdf4 commit 91b34c0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,16 @@ jobs:
112112
113113
- name: Run acceptance tests
114114
run: |
115-
bundle exec rake 'litmus:acceptance:parallel'
115+
for i in 1 2 3; do
116+
if bundle exec rake 'litmus:acceptance:parallel'; then
117+
break
118+
elif [ "$i" -lt 3 ]; then
119+
echo "Retrying acceptance tests (Attempt $i)"
120+
else
121+
echo "Acceptance tests failed after $i attempts."
122+
exit 1
123+
fi
124+
done
116125
117126
- name: Remove test environment
118127
if: ${{ always() }}

0 commit comments

Comments
 (0)