Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

test(ci): require executed navigation tests and propagate pipeline failures

yhh627e4a8acaa1
diff --git a/.github/workflows/editor-spatial.yml b/.github/workflows/editor-spatial.yml
index 4b4d663f1..27e6d32dd 100644
--- a/.github/workflows/editor-spatial.yml
+++ b/.github/workflows/editor-spatial.yml
@@ -78,6 +78,7 @@ jobs:
run: node tools/verify-gizmo-legacy-2d.mjs
- name: Run existing gizmo authoring checks
if: matrix.suite == 'regression'
+ shell: bash
working-directory: desktop
env:
ESTELLA_MCP_EDITOR_VISIBLE: '1'
diff --git a/.github/workflows/navigation-cpu.yml b/.github/workflows/navigation-cpu.yml
index 0045c13d0..c9bc55837 100644
--- a/.github/workflows/navigation-cpu.yml
+++ b/.github/workflows/navigation-cpu.yml
@@ -20,9 +20,14 @@ jobs:
- uses: ./.github/actions/setup
- run: pnpm exec playwright install --with-deps chromium
- name: Check navigation contracts
+ shell: bash
+ env:
+ SDK_TEST_MODE: no-wasm
+ ESTELLA_NO_EMCC: '1'
run: |
mkdir -p output/navigation-cpu-ci
- pnpm --filter ./sdk exec vitest run nav --maxWorkers=4 --minWorkers=1 | tee output/navigation-cpu-ci/tests.log
+ pnpm --filter ./sdk exec vitest run nav --maxWorkers=4 --minWorkers=1 --reporter=json --outputFile=../output/navigation-cpu-ci/tests.json 2>&1 | tee output/navigation-cpu-ci/tests.log
+ node -e "const r=require('./output/navigation-cpu-ci/tests.json'); if(!r.success || !r.numTotalTests || r.numPendingTests || r.numPassedTests!==r.numTotalTests) process.exit(1); console.log(r.numPassedTests+' navigation tests passed');"
- name: Measure identical building maps with reference and current searches
env:
SEARCH_REFERENCE: ${{ inputs.search-reference }}