From 3d9d093231069108ada13c4e6c82e09ca91a5663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=AB=98?= Date: Tue, 10 Nov 2026 20:00:56 +0800 Subject: [PATCH] test(release): include integrated native preparation checks --- .github/workflows/motion-candidate.yml | 2 +- tests/release-workflows.test.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/motion-candidate.yml b/.github/workflows/motion-candidate.yml index 55bf487b4..082bfaa46 100644 --- a/.github/workflows/motion-candidate.yml +++ b/.github/workflows/motion-candidate.yml @@ -69,7 +69,7 @@ jobs: npm run typecheck:studio npm run build:studio npm run build:tracking - node --experimental-strip-types --test tests/tracking.test.ts tests/install.test.ts tests/npm-installer.test.ts tests/npm-package.test.ts tests/test-package.test.ts tests/source-install.test.ts tests/bootstrap.test.ts tests/mcp-registry.test.ts tests/mcp-runtime.test.ts tests/mcp-upgrade.test.ts tests/preview.test.ts tests/phase1.test.ts tests/preview-handoff.test.ts tests/adapters.test.ts tests/package.test.ts tests/recreate-measure.test.ts tests/workflow.test.ts tests/catalog.test.ts tests/prism-templates.test.ts tests/extension-boundary.test.ts tests/connections.test.ts tests/install-guide.test.ts + node --experimental-strip-types --test tests/tracking.test.ts tests/install.test.ts tests/npm-installer.test.ts tests/native-runtime.test.ts tests/npm-package.test.ts tests/test-package.test.ts tests/source-install.test.ts tests/bootstrap.test.ts tests/mcp-registry.test.ts tests/mcp-runtime.test.ts tests/mcp-upgrade.test.ts tests/preview.test.ts tests/phase1.test.ts tests/preview-handoff.test.ts tests/adapters.test.ts tests/package.test.ts tests/recreate-measure.test.ts tests/workflow.test.ts tests/catalog.test.ts tests/prism-templates.test.ts tests/extension-boundary.test.ts tests/connections.test.ts tests/install-guide.test.ts npm run test:studio -- --maxWorkers=2 npm run package:phase1 archive="$PWD/dist/motion-$(node -p "require('./package.json').version")-phase1.zip" diff --git a/tests/release-workflows.test.mjs b/tests/release-workflows.test.mjs index 3aea70d3b..6097dfc0a 100644 --- a/tests/release-workflows.test.mjs +++ b/tests/release-workflows.test.mjs @@ -267,6 +267,7 @@ test('daily build and publication are separate manual entries without an indepen assert(build.includes('name: ' + candidateJobName) && build.includes('ref: ${{ steps.source.outputs.source_sha }}')); assert(build.includes("github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/motion'")); assert(build.includes('--template-env=dev') && !build.includes('--template-env=prod')); + assert(build.includes('tests/native-runtime.test.ts'), 'Candidate checks include the integrated native-preparation regression'); assert(build.includes('HYPERFRAMES_BROWSER_PATH: /usr/bin/google-chrome') && build.includes('\"$HYPERFRAMES_BROWSER_PATH\" --version')); assert(!/apt-get install[^\n]*\bchromium\b/.test(build), 'Candidate builds must not install Ubuntu desktop snaps'); assert.match(build, /version:\n(?:[^\n]*\n)*? required: false\n default: ''/);