Skip to content

Commit 0cf0e91

Browse files
committed
add retry workflow
1 parent a6b0afd commit 0cf0e91

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/test-google-oauth.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,15 @@ jobs:
5151
- run: |
5252
pnpx puppeteer browsers install chrome
5353
- run: pnpm install
54-
- run: pnpm test:google
54+
- name: Run test
55+
run: |
56+
for i in {1..3}; do
57+
echo "Attempt $i"
58+
if pnpm test:google; then
59+
echo "Success on attempt $i"
60+
exit 0
61+
fi
62+
echo "Attempt $i failed, retrying..."
63+
done
64+
echo "All attempts failed"
65+
exit 1

.github/workflows/test-zitadel-oauth.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,15 @@ jobs:
9898
- run: |
9999
pnpx puppeteer browsers install chrome
100100
- run: pnpm install
101-
- run: pnpm test:zitadel
101+
- name: Run test
102+
run: |
103+
for i in {1..3}; do
104+
echo "Attempt $i"
105+
if pnpm test:zitadel; then
106+
echo "Success on attempt $i"
107+
exit 0
108+
fi
109+
echo "Attempt $i failed, retrying..."
110+
done
111+
echo "All attempts failed"
112+
exit 1

0 commit comments

Comments
 (0)