mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-09 03:22:40 +00:00
fix(ci): require Docker only for routed workloads
This commit is contained in:
4
.github/workflows/crabbox-hydrate.yml
vendored
4
.github/workflows/crabbox-hydrate.yml
vendored
@@ -271,7 +271,9 @@ jobs:
|
||||
set -euo pipefail
|
||||
|
||||
docker_required=false
|
||||
if [ "${CRABBOX_JOB:-hydrate}" != "hydrate" ]; then
|
||||
# crabbox_job is also the readiness marker. Only the routed Docker
|
||||
# workload contract requires an engine; other marker names do not.
|
||||
if [ "${CRABBOX_JOB:-hydrate}" = "hydrate-docker" ]; then
|
||||
docker_required=true
|
||||
fi
|
||||
|
||||
|
||||
@@ -1203,7 +1203,8 @@ describe("package acceptance workflow", () => {
|
||||
CRABBOX_JOB: "${{ inputs.crabbox_job }}",
|
||||
});
|
||||
expect(ensureDocker.run).toContain("docker_required=false");
|
||||
expect(ensureDocker.run).toContain('if [ "${CRABBOX_JOB:-hydrate}" != "hydrate" ]; then');
|
||||
expect(ensureDocker.run).toContain('if [ "${CRABBOX_JOB:-hydrate}" = "hydrate-docker" ]; then');
|
||||
expect(ensureDocker.run).toContain("other marker names do not");
|
||||
expect(ensureDocker.run).toContain('if [ "$docker_required" = true ]; then');
|
||||
expect(ensureDocker.run).toContain(
|
||||
"Docker is unavailable for ${CRABBOX_JOB:-hydrate}; route this workload to a Docker-capable provider",
|
||||
|
||||
Reference in New Issue
Block a user