ci: guard publish bun test completion summary
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -46,7 +46,17 @@ jobs:
|
|||||||
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/cli @ast-grep/napi"
|
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/cli @ast-grep/napi"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: bun test
|
run: |
|
||||||
|
set -o pipefail
|
||||||
|
log_path="${RUNNER_TEMP:-/tmp}/omo-bun-test.log"
|
||||||
|
set +e
|
||||||
|
bun test 2>&1 | tee "$log_path"
|
||||||
|
test_status="${PIPESTATUS[0]}"
|
||||||
|
set -e
|
||||||
|
if [ "$test_status" -ne 0 ]; then
|
||||||
|
exit "$test_status"
|
||||||
|
fi
|
||||||
|
bun run script/assert-test-summary.ts "$log_path"
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user