ci(k8s): remove in-cluster LocalStack; use host LocalStack via localhost:4566 for all; rely on k3d host mapping
parent
83271b5e7d
commit
67ec14a25f
|
@ -26,7 +26,9 @@ describe('Cloud Runner pre-built rclone steps', () => {
|
||||||
(() => {
|
(() => {
|
||||||
// Determine environment capability to run rclone operations
|
// Determine environment capability to run rclone operations
|
||||||
const isCI = process.env.GITHUB_ACTIONS === 'true';
|
const isCI = process.env.GITHUB_ACTIONS === 'true';
|
||||||
|
const isWindows = process.platform === 'win32';
|
||||||
let rcloneAvailable = false;
|
let rcloneAvailable = false;
|
||||||
|
let bashAvailable = !isWindows; // assume available on non-Windows
|
||||||
if (!isCI) {
|
if (!isCI) {
|
||||||
try {
|
try {
|
||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
|
@ -35,10 +37,19 @@ describe('Cloud Runner pre-built rclone steps', () => {
|
||||||
} catch {
|
} catch {
|
||||||
rcloneAvailable = false;
|
rcloneAvailable = false;
|
||||||
}
|
}
|
||||||
|
if (isWindows) {
|
||||||
|
try {
|
||||||
|
const { execSync } = require('child_process');
|
||||||
|
execSync('bash --version', { stdio: 'ignore' });
|
||||||
|
bashAvailable = true;
|
||||||
|
} catch {
|
||||||
|
bashAvailable = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasRcloneRemote = Boolean(process.env.RCLONE_REMOTE || process.env.rcloneRemote);
|
const hasRcloneRemote = Boolean(process.env.RCLONE_REMOTE || process.env.rcloneRemote);
|
||||||
const shouldRunRclone = (isCI && hasRcloneRemote) || rcloneAvailable;
|
const shouldRunRclone = (isCI && hasRcloneRemote) || (rcloneAvailable && (!isWindows || bashAvailable));
|
||||||
|
|
||||||
if (shouldRunRclone) {
|
if (shouldRunRclone) {
|
||||||
it('Run build and prebuilt rclone cache pull, cache push and upload build', async () => {
|
it('Run build and prebuilt rclone cache pull, cache push and upload build', async () => {
|
||||||
|
|
Loading…
Reference in New Issue