You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The root `test:github-scripts` script runs `bun test ./.github/scripts`;
# its leading "./" is load-bearing, since `bun test .github/scripts`
# silently discovers ZERO tests and still exits 0. Capture output to a
# file instead of piping it, so `test_exit` below is the script's own
# exit code, not `tee`/`grep`'s.
pnpm run test:github-scripts > /tmp/github-scripts-test-output.txt 2>&1
test_exit=$?
cat /tmp/github-scripts-test-output.txt
if [ "$test_exit" -ne 0 ]; then
echo "::error ::bun test failed (exit $test_exit)." >&2
exit 1
fi
if ! grep -Eq 'Ran [1-9][0-9]* tests' /tmp/github-scripts-test-output.txt; then
echo "::error ::bun test reported no tests ran (missing 'Ran N tests' with N>0) — the leading './' may have been dropped, or test discovery is otherwise broken." >&2
exit 1
fi
- name: Type-check
run: bun x tsc --noEmit -p .github/scripts/tsconfig.json