From c5b086f88a9f781a403674b8e6d972a9506adc57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=80=82?= Date: Wed, 8 Jul 2026 18:21:58 +0800 Subject: [PATCH] =?UTF-8?q?test(deploy):=20=E9=80=82=E9=85=8DV2.8=E5=8F=91?= =?UTF-8?q?=E5=B8=83smoke=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/lib/production-deploy-source.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/lib/production-deploy-source.test.ts b/apps/web/lib/production-deploy-source.test.ts index 868ed74..81afca6 100644 --- a/apps/web/lib/production-deploy-source.test.ts +++ b/apps/web/lib/production-deploy-source.test.ts @@ -27,12 +27,15 @@ test('GitHub Actions workflow builds pushes deploys migrates and verifies runtim const workflowPath = join(repoRoot, '.github/workflows/deploy-production.yml'); assert.equal(existsSync(workflowPath), true); const workflow = readFileSync(workflowPath, 'utf8'); + const smokeScript = readFileSync(join(repoRoot, 'scripts/smoke-test-release.mjs'), 'utf8'); assert.match(workflow, /docker\/build-push-action/); assert.match(workflow, /appleboy\/ssh-action/); assert.match(workflow, /docker compose --env-file \.env\.production -f docker-compose\.prod\.yml pull/); assert.match(workflow, /pnpm --filter server db:deploy/); - assert.match(workflow, /\/api\/v1\/health\/version/); + assert.match(workflow, /smoke-test-release\.mjs/); + assert.match(workflow, /--expected-version "\$\{\{ github\.sha \}\}"/); + assert.match(smokeScript, /\/api\/v1\/health\/version/); }); test('deployment runtime version check is available as a repeatable script', () => {