@@ -144,18 +144,15 @@ jobs:
144144 -- --nocapture
145145
146146 rust_watcher_test :
147- name : Rust Watcher test ${{ matrix.array.os }}
147+ name : Rust watcher test - ${{ matrix.array.runner }}
148148 runs-on : ${{ fromJSON(matrix.array.runner) }}
149149 strategy :
150150 fail-fast : false # run all tests even if some fail
151151 matrix :
152152 array :
153- - os : ubuntu
154- runner : ${{ vars.LINUX_SELF_HOSTED_RUNNER_LABELS || '"ubuntu-22.04"' }}
155- - os : windows
156- runner : ${{ '"windows-latest"' }}
157- - os : macOS
158- runner : ${{ '"macos-latest"' }}
153+ - runner : ${{ vars.LINUX_SELF_HOSTED_RUNNER_LABELS || '"ubuntu-22.04"' }}
154+ - runner : ${{ '"windows-latest"' }}
155+ - runner : ${{ '"macos-latest"' }}
159156 needs : [check-changed]
160157 if : ${{ needs.check-changed.outputs.code_changed == 'true' }}
161158 steps :
@@ -165,7 +162,7 @@ jobs:
165162 uses : ./.github/actions/rustup
166163 with :
167164 save-if : true
168- key : test
165+ key : test-os-${{ matrix.array.runner }}
169166
170167 # Compile test without debug info for reducing the CI cache size
171168 - name : Change profile.test
@@ -180,14 +177,21 @@ jobs:
180177
181178 test_required_check :
182179 name : Rust Test Required Check
183- needs : [rust_test, rust_check, rust_unused_dependencies, rust_watcher_test, check-changed]
180+ needs :
181+ [
182+ rust_test,
183+ rust_check,
184+ rust_unused_dependencies,
185+ rust_watcher_test,
186+ check-changed
187+ ]
184188 if : ${{ always() && !cancelled() }}
185189 runs-on : ubuntu-latest
186190 steps :
187191 - name : Log
188192 run : echo ${{ join(needs.*.result, ',') }}
189193 - name : Test check
190- if : ${{ needs.check-changed.outputs.code_changed == 'true' && join(needs.*.result, ',')!='success,success,success,success' }}
194+ if : ${{ needs.check-changed.outputs.code_changed == 'true' && join(needs.*.result, ',')!='success,success,success,success,success ' }}
191195 run : echo "Tests Failed" && exit 1
192196 - name : No check to Run test
193197 run : echo "Success"
0 commit comments