This commit is contained in:
mkorwel
2025-10-22 01:26:54 -07:00
parent 8c9494eb70
commit f09e38ee0e
2 changed files with 8 additions and 6 deletions
+3
View File
@@ -65,6 +65,7 @@ jobs:
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
KEEP_OUTPUT: 'true'
VERBOSE: 'true'
INTEGRATION_TEST_USE_INSTALLED_GEMINI: 'true'
shell: 'bash'
run: |
if [[ "${{ matrix.sandbox }}" == "sandbox:docker" ]]; then
@@ -120,6 +121,7 @@ jobs:
KEEP_OUTPUT: 'true'
SANDBOX: 'sandbox:none'
VERBOSE: 'true'
INTEGRATION_TEST_USE_INSTALLED_GEMINI: 'true'
run: 'npm run test:integration:sandbox:none'
e2e_windows:
@@ -190,6 +192,7 @@ jobs:
NODE_OPTIONS: '--max-old-space-size=32768 --max-semi-space-size=256'
UV_THREADPOOL_SIZE: '32'
NODE_ENV: 'test'
INTEGRATION_TEST_USE_INSTALLED_GEMINI: 'true'
shell: 'pwsh'
run: 'npm run test:integration:sandbox:none'
+5 -6
View File
@@ -329,12 +329,11 @@ export class TestRig {
command: string;
initialArgs: string[];
} {
const isNpmReleaseTest =
env['INTEGRATION_TEST_USE_INSTALLED_GEMINI'] === 'true';
const command = isNpmReleaseTest ? 'gemini' : 'node';
const initialArgs = isNpmReleaseTest
? extraInitialArgs
: [this.bundlePath, ...extraInitialArgs];
const command = 'node';
const initialArgs = [
join(__dirname, '..', 'node_modules', '.bin', 'gemini'),
...extraInitialArgs,
];
return { command, initialArgs };
}