Skip to content

Commit ea73bee

Browse files
author
Peter Amiri
committed
ci: install git before checkout in the CommandBox smoke container
The commandbox-install-smoke job has failed with exit 127 on every run since it was added: the ortussolutions/commandbox image ships without git, so actions/checkout falls back to the REST-API tarball — which honors .gitattributes export-ignore, and this repo export-ignores tools/ and cli/. The workspace therefore never contained the build scripts and templates the job exists to test. Install git before checkout so it performs a real clone, and assert post-checkout that tools/build/scripts/prepare-base.sh is present so any future fallback is named precisely instead of failing as a missing-file error three steps later. Signed-off-by: Peter Amiri <petera@pai.com>
1 parent 00faa6c commit ea73bee

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎.github/workflows/commandbox-install-smoke.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,27 @@ jobs:
8080
# Pin the version the prepare scripts stamp into the artifacts.
8181
PKG_VERSION: "0.0.0-cismoke"
8282
steps:
83+
# The CommandBox image ships without git, and actions/checkout without git
84+
# falls back to the REST-API tarball — which honors .gitattributes
85+
# export-ignore, and this repo export-ignores tools/ and cli/. That left
86+
# this job's workspace without the very build scripts and templates it
87+
# exists to test (prepare-base.sh: No such file or directory, exit 127,
88+
# on every run since the job was added). Install git BEFORE checkout so
89+
# it performs a real clone.
90+
- name: Ensure git is available (checkout must not fall back to the export-ignored tarball)
91+
run: |
92+
command -v git >/dev/null 2>&1 || {
93+
apt-get update -y && apt-get install -y --no-install-recommends git ca-certificates
94+
}
95+
git --version
96+
8397
- uses: actions/checkout@v5
8498

99+
- name: Assert the export-ignored paths actually checked out
100+
run: |
101+
test -f tools/build/scripts/prepare-base.sh || {
102+
echo "::error::tools/ missing from workspace — checkout fell back to the export-ignored tarball again"; exit 1; }
103+
85104
# curl + jq are the only host tools the probes need; the CommandBox image
86105
# is Debian-based but minimal. Install defensively (no-op if present).
87106
- name: Ensure curl is available

0 commit comments

Comments
 (0)