Skip to content

Commit 94c63e1

Browse files
ci: retry flaky per-file test execution once
1 parent d005c73 commit 94c63e1

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ jobs:
3131
bunx tsc --noEmit
3232
for f in $(rg --files src | rg '\.test\.ts$' | sort); do
3333
echo "Running $f"
34-
bun test "$f"
34+
if ! bun test "$f"; then
35+
echo "Retrying $f once after failure..."
36+
bun test "$f"
37+
fi
3538
done

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ jobs:
6161
set -e
6262
for f in $(rg --files src | rg '\.test\.ts$' | sort); do
6363
echo "Running $f"
64-
bun test "$f"
64+
if ! bun test "$f"; then
65+
echo "Retrying $f once after failure..."
66+
bun test "$f"
67+
fi
6568
done
6669
6770
- name: Build

0 commit comments

Comments
 (0)