Skip to content

Commit 8a37599

Browse files
committed
test: confirm action outputs
1 parent 3698dd9 commit 8a37599

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/integration.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,24 @@ jobs:
269269
ref: ${{ inputs.ref || github.event.pull_request.head.sha || github.sha }}
270270

271271
- name: "test(cli): run a slack cli version check"
272+
id: version
272273
uses: ./cli
273274
with:
274275
command: "version"
275276
version: "3.14.0"
276277

278+
- name: "test(cli): confirm the version check outputs"
279+
shell: bash
280+
run: |
281+
set -ex
282+
[ "$CLI_OK" = "true" ]
283+
echo "$CLI_TIME" | grep -qE '^[0-9]+$'
284+
[ -n "$CLI_RESPONSE" ]
285+
env:
286+
CLI_OK: ${{ steps.version.outputs.ok }}
287+
CLI_RESPONSE: ${{ steps.version.outputs.response }}
288+
CLI_TIME: ${{ steps.version.outputs.time }}
289+
277290
- name: "chore: configure the actioneering application"
278291
shell: bash
279292
run: mv .github/resources/.slack .slack

0 commit comments

Comments
 (0)