diff --git a/.github/scripts/smoke.sh b/.github/scripts/smoke.sh index e6ad12d..8683ab2 100755 --- a/.github/scripts/smoke.sh +++ b/.github/scripts/smoke.sh @@ -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; } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fa6a0fd..ff71f35 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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.