Skip to content

Commit

Permalink
add retry workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonLe committed Dec 16, 2024
1 parent a6b0afd commit 0cf0e91
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/test-google-oauth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,15 @@ jobs:
- run: |
pnpx puppeteer browsers install chrome
- run: pnpm install
- run: pnpm test:google
- name: Run test
run: |
for i in {1..3}; do
echo "Attempt $i"
if pnpm test:google; then
echo "Success on attempt $i"
exit 0
fi
echo "Attempt $i failed, retrying..."
done
echo "All attempts failed"
exit 1
13 changes: 12 additions & 1 deletion .github/workflows/test-zitadel-oauth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,15 @@ jobs:
- run: |
pnpx puppeteer browsers install chrome
- run: pnpm install
- run: pnpm test:zitadel
- name: Run test
run: |
for i in {1..3}; do
echo "Attempt $i"
if pnpm test:zitadel; then
echo "Success on attempt $i"
exit 0
fi
echo "Attempt $i failed, retrying..."
done
echo "All attempts failed"
exit 1

0 comments on commit 0cf0e91

Please sign in to comment.