mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): capture stopped reconciliation bundles
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const { spawnSync } = require('node:child_process');
|
||||
const path = require('node:path');
|
||||
|
||||
const root = path.resolve(__dirname, '..');
|
||||
const build = spawnSync(
|
||||
'pnpm',
|
||||
['--filter', '@qinglong/local-owner-cli', 'build'],
|
||||
{ cwd: root, encoding: 'utf8', stdio: 'inherit' },
|
||||
);
|
||||
if (build.status !== 0) process.exit(build.status ?? 1);
|
||||
|
||||
const test = spawnSync(
|
||||
process.execPath,
|
||||
[
|
||||
'--test',
|
||||
'--test-name-pattern',
|
||||
'real stopped Docker target',
|
||||
path.join(
|
||||
root,
|
||||
'packages/ql3-local-owner-cli/test/reconciliationCapturePrepare.test.cjs',
|
||||
),
|
||||
],
|
||||
{
|
||||
cwd: root,
|
||||
encoding: 'utf8',
|
||||
stdio: 'inherit',
|
||||
env: { ...process.env, QL3_RECONCILIATION_DOCKER_GATE: '1' },
|
||||
},
|
||||
);
|
||||
process.exit(test.status ?? 1);
|
||||
Reference in New Issue
Block a user