1- name : Slack CLI Command Runner Tests
1+ name : Slack CLI Runner Tests
22
33on :
44 pull_request :
77 test-all :
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v4
10+ - name : Checkout the current code
11+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1112
1213 - name : Run slack version
1314 id : version
1415 uses : ./.github/resources/.actions/cli-runner
1516 with :
1617 command : " version"
17- cli_version : " latest "
18+ cli-version : " 3.6.1 "
1819 env :
1920 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
2021
2122 - name : Debug outputs
2223 run : |
23- echo "stdout : '${{ steps.version.outputs.stdout }}'"
24- echo "success : '${{ steps.version.outputs.success }}'"
24+ echo "output : '${{ steps.version.outputs.output }}'"
25+ echo "ok : '${{ steps.version.outputs.ok }}'"
2526 echo "command executed: '${{ steps.version.outputs.command_executed }}'"
2627
2728 - name : Verify CLI version
28- if : steps.version.outputs.success != 'true'
29+ if : steps.version.outputs.ok != 'true'
2930 run : |
3031 echo "CLI version command failure"
31- echo "stdout : ${{ steps.version.outputs.stdout }}"
32+ echo "output : ${{ steps.version.outputs.output }}"
3233 exit 1
3334
3435 - name : Empty command
3536 id : empty-command
3637 uses : ./.github/resources/.actions/cli-runner
3738 with :
3839 command : " "
39- cli_version : " latest "
40+ cli-version : " 3.6.1 "
4041 env :
4142 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
4243
4546 uses : ./.github/resources/.actions/cli-runner
4647 with :
4748 command : " version"
48- cli_version : " latest "
49+ cli-version : " 3.6.1 "
4950 env :
5051 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
5152
@@ -54,58 +55,58 @@ jobs:
5455 uses : ./.github/resources/.actions/cli-runner
5556 with :
5657 command : ' doctor --help --experiment string'
57- cli_version : " latest "
58+ cli-version : " 3.6.1 "
5859 env :
5960 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
6061
6162 - name : Ensure empty command works
62- if : steps.empty-command.outputs.success != 'true'
63+ if : steps.empty-command.outputs.ok != 'true'
6364 run : |
6465 echo "Empty command failure"
65- echo "success : '${{ steps.empty-command.outputs.success }}'"
66- echo "stdout : '${{ steps.empty-command.outputs.stdout }}'"
66+ echo "ok : '${{ steps.empty-command.outputs.ok }}'"
67+ echo "output : '${{ steps.empty-command.outputs.output }}'"
6768 exit 1
6869
6970 - name : Ensure command with whitespace
70- if : steps.command-with-whitespace.outputs.success != 'true'
71+ if : steps.command-with-whitespace.outputs.ok != 'true'
7172 run : |
7273 echo "Command with whitespace failure"
73- echo "success : '${{ steps.command-with-whitespace.outputs.success }}'"
74- echo "stdout : '${{ steps.command-with-whitespace.outputs.stdout }}'"
74+ echo "ok : '${{ steps.command-with-whitespace.outputs.ok }}'"
75+ echo "output : '${{ steps.command-with-whitespace.outputs.output }}'"
7576 exit 1
7677
7778 - name : Ensure long command works
78- if : steps.long-command.outputs.success != 'true'
79+ if : steps.long-command.outputs.ok != 'true'
7980 run : |
8081 echo "Long command failure"
81- echo "success : '${{ steps.long-command.outputs.success }}'"
82- echo "stdout : '${{ steps.long-command.outputs.stdout }}'"
82+ echo "ok : '${{ steps.long-command.outputs.ok }}'"
83+ echo "output : '${{ steps.long-command.outputs.output }}'"
8384 exit 1
8485
8586 - name : Run with verbose
8687 id : with-verbose
8788 uses : ./.github/resources/.actions/cli-runner
8889 with :
8990 command : " help"
90- cli_version : " latest "
91+ cli-version : " 3.6.1 "
9192 verbose : " true"
9293 env :
9394 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
9495
9596 - name : Ensure verbose flag worked
96- if : steps.with-verbose.outputs.success != 'true'
97+ if : steps.with-verbose.outputs.ok != 'true'
9798 run : |
9899 echo "Verbose flag failure"
99- echo "success : '${{ steps.with-verbose.outputs.success }}'"
100- echo "stdout : '${{ steps.with-verbose.outputs.stdout }}'"
100+ echo "ok : '${{ steps.with-verbose.outputs.ok }}'"
101+ echo "output : '${{ steps.with-verbose.outputs.output }}'"
101102 exit 1
102103
103104 - name : First run (install if missing)
104105 id : no-cache
105106 uses : ./.github/resources/.actions/cli-runner
106107 with :
107108 command : " version"
108- cli_version : " latest "
109+ cli-version : " 3.6.1 "
109110 env :
110111 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
111112
@@ -114,13 +115,13 @@ jobs:
114115 uses : ./.github/resources/.actions/cli-runner
115116 with :
116117 command : " version"
117- cli_version : " latest "
118+ cli-version : " 3.6.1 "
118119 env :
119120 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
120121 SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
121122
122123 - name : Ensure cache worked
123- if : github.run_attempt > 1 && steps.cache-hit.outputs.success != 'true'
124+ if : github.run_attempt > 1 && steps.cache-hit.outputs.ok != 'true'
124125 run : |
125126 echo "cache failure"
126127 exit 1
@@ -131,30 +132,30 @@ jobs:
131132 uses : ./.github/resources/.actions/cli-runner
132133 with :
133134 command : " invalid-command"
134- cli_version : " latest "
135+ cli-version : " 3.6.1 "
135136 env :
136137 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
137138
138139 - name : Expect failure
139- if : steps.invalid-command.outputs.success == 'true'
140+ if : steps.invalid-command.outputs.ok == 'true'
140141 run : |
141142 echo "Expected failure with invalid command"
142- echo "stdout : '${{ steps.invalid-command.outputs.stdout }}'"
143- echo "success : '${{ steps.invalid-command.outputs.success }}'"
143+ echo "output : '${{ steps.invalid-command.outputs.output }}'"
144+ echo "ok : '${{ steps.invalid-command.outputs.ok }}'"
144145 exit 1
145146
146147 - name : Test specific version
147148 id : specific-version
148149 uses : ./.github/resources/.actions/cli-runner
149150 with :
150151 command : " version"
151- cli_version : " 3.5.0"
152+ cli-version : " 3.5.0"
152153 env :
153154 SLACK_SERVICE_TOKEN : ${{ secrets.SLACK_SERVICE_TOKEN }}
154155
155156 - name : Ensure specific version
156- if : ${{ !contains(steps.specific-version.outputs.stdout , '3.5.0') }}
157+ if : ${{ !contains(steps.specific-version.outputs.output , '3.5.0') }}
157158 run : |
158159 echo "Specific version failure"
159- echo "stdout : '${{ steps.specific-version.outputs.stdout }}'"
160+ echo "output : '${{ steps.specific-version.outputs.output }}'"
160161 exit 1
0 commit comments