ci: fail closed on sharded test gate
This commit is contained in:
@@ -84,8 +84,18 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test-isolated, test-shared]
|
||||
if: ${{ always() }}
|
||||
steps:
|
||||
- run: echo "All test shards passed"
|
||||
- name: Verify test shards passed
|
||||
env:
|
||||
ISOLATED_RESULT: ${{ needs.test-isolated.result }}
|
||||
SHARED_RESULT: ${{ needs.test-shared.result }}
|
||||
run: |
|
||||
if [ "$ISOLATED_RESULT" != "success" ] || [ "$SHARED_RESULT" != "success" ]; then
|
||||
echo "::error::test-isolated=${ISOLATED_RESULT}, test-shared=${SHARED_RESULT}"
|
||||
exit 1
|
||||
fi
|
||||
echo "All test shards passed"
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -9,6 +9,10 @@ const workflowChecks = [
|
||||
testRuns: [
|
||||
"run: bun run script/run-ci-tests.ts --phase=isolated --shard-count=4 --shard-index=${{ matrix.shard }}",
|
||||
"run: bun run script/run-ci-tests.ts --phase=shared",
|
||||
"if: ${{ always() }}",
|
||||
"ISOLATED_RESULT: ${{ needs.test-isolated.result }}",
|
||||
"SHARED_RESULT: ${{ needs.test-shared.result }}",
|
||||
"echo \"::error::test-isolated=${ISOLATED_RESULT}, test-shared=${SHARED_RESULT}\"",
|
||||
"run: bun test src/shared/dist-bundle-bun-globals.test.ts",
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user