mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
ci: stop claiming the smoke test proves what --no-emoji does
Piped output is already plain and version prints no glyphs, so the ASCII check could not fail. Keep the parse check; ErgonomicsTest covers the behaviour. Addresses the review of #72. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
2 files changed
+3
-7
No files matched your search
@@ -41,17 +41,13 @@ require_output() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Exercise the shorthand and the plain-marks option through the shipped binary.
|
||||
# The shorthand and the plain-marks flag parse in the shipped binary. What --no-emoji does cannot
|
||||
# be seen here: piped output is already plain. ErgonomicsTest covers that.
|
||||
reported=$("$bin" version --json --no-emoji | tr -d ' \r\n')
|
||||
case "$reported" in
|
||||
*'"cli":'*) ;;
|
||||
*) echo "::error::version --json did not return a version object: $reported"; exit 1 ;;
|
||||
esac
|
||||
"$bin" version --no-emoji > "$work/plain"
|
||||
if LC_ALL=C grep -q '[^ -~[:space:]]' "$work/plain"; then
|
||||
echo "::error::version --no-emoji contains non-ASCII marks"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$bin" completion bash > "$work/completion"
|
||||
[ -s "$work/completion" ] || { echo "::error::completion bash printed nothing"; exit 1; }
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ mvn package -Pnative -DskipTests # native binary → target/floci (requires
|
||||
```
|
||||
|
||||
The native CI and release jobs run `.github/scripts/smoke.sh ./target/floci`. It checks
|
||||
completion, rejected input, JSON/plain/YAML output, profile create/edit/read/delete, reset's
|
||||
completion, rejected input, JSON and YAML output, profile create/edit/read/delete, reset's
|
||||
confirmation guard and Compose validation with YAML anchors and merge keys. It needs no
|
||||
emulator or Docker daemon. It skips profile edit on Windows. Run it after building the native binary when changing these paths.
|
||||
|
||||
|
||||
Reference in new issue
Block a user