ci: fail closed on sharded test gate
This commit is contained in:
@@ -84,8 +84,18 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [test-isolated, test-shared]
|
needs: [test-isolated, test-shared]
|
||||||
|
if: ${{ always() }}
|
||||||
steps:
|
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:
|
typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ const workflowChecks = [
|
|||||||
testRuns: [
|
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=isolated --shard-count=4 --shard-index=${{ matrix.shard }}",
|
||||||
"run: bun run script/run-ci-tests.ts --phase=shared",
|
"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",
|
"run: bun test src/shared/dist-bundle-bun-globals.test.ts",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user