Skip to content

Commit 809cf5c

Browse files
committed
ci: confirm unknown commands error
1 parent 86c95e5 commit 809cf5c

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/integration.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,25 @@ jobs:
287287
CLI_RESPONSE: ${{ steps.version.outputs.response }}
288288
CLI_TIME: ${{ steps.version.outputs.time }}
289289

290+
- name: "test(cli): run an unknown command"
291+
id: unknown
292+
continue-on-error: true
293+
uses: ./cli
294+
with:
295+
command: "off"
296+
297+
- name: "test(cli): confirm the unknown command outputs"
298+
shell: bash
299+
run: |
300+
set -ex
301+
[ "$CLI_OK" = "false" ]
302+
echo "$CLI_TIME" | grep -qE '^[0-9]+$'
303+
[ -n "$CLI_RESPONSE" ]
304+
env:
305+
CLI_OK: ${{ steps.unknown.outputs.ok }}
306+
CLI_RESPONSE: ${{ steps.unknown.outputs.response }}
307+
CLI_TIME: ${{ steps.unknown.outputs.time }}
308+
290309
- name: "chore: configure the actioneering application"
291310
shell: bash
292311
run: mv .github/resources/.slack .slack

0 commit comments

Comments
 (0)