mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-03 05:27:40 -04:00
test(integration): skip volume mounting in CI
This commit is contained in:
2
.github/workflows/integration.yml
vendored
2
.github/workflows/integration.yml
vendored
@@ -20,6 +20,8 @@ jobs:
|
||||
uses: "./.github/actions/install-dependencies"
|
||||
|
||||
- name: Run integration tests
|
||||
env:
|
||||
SKIP_VOLUME_MOUNT_INTEGRATION_TESTS: "true"
|
||||
run: bun run test:integration
|
||||
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
||||
|
||||
@@ -106,6 +106,7 @@ services:
|
||||
environment:
|
||||
LOG_LEVEL: "error"
|
||||
SFTP_PRIVATE_KEY_PATH: "/run/zerobyte/sftp/id_ed25519"
|
||||
SKIP_VOLUME_MOUNT_INTEGRATION_TESTS: "${SKIP_VOLUME_MOUNT_INTEGRATION_TESTS:-false}"
|
||||
|
||||
volumes:
|
||||
rustfs-data:
|
||||
|
||||
@@ -59,6 +59,8 @@ const scenarios: VolumeScenario[] = [
|
||||
},
|
||||
];
|
||||
|
||||
const volumeMountTest = process.env.SKIP_VOLUME_MOUNT_INTEGRATION_TESTS === "true" ? test.skip : test;
|
||||
|
||||
const makeDirectoriesWritable = async (root: string): Promise<void> => {
|
||||
await fs.chmod(root, 0o700).catch(() => {});
|
||||
|
||||
@@ -76,7 +78,7 @@ const makeDirectoriesWritable = async (root: string): Promise<void> => {
|
||||
);
|
||||
};
|
||||
|
||||
test.concurrent.each(scenarios)("$name can backup and restore static fixture data", async (scenario) => {
|
||||
volumeMountTest.concurrent.each(scenarios)("$name can backup and restore static fixture data", async (scenario) => {
|
||||
const runId = crypto.randomUUID();
|
||||
const workspace = path.join(INTEGRATION_RUNS_DIR, `${scenario.id}-${runId}`);
|
||||
const mountPath = path.join(workspace, "mount");
|
||||
|
||||
Reference in New Issue
Block a user