Skip to content

Commit

Permalink
Only add binary tests if they exist (#21973)
Browse files Browse the repository at this point in the history
* only add binary tests if they exist

* shellcheck
  • Loading branch information
miagilepner authored Jul 20, 2023
1 parent 3b00dde commit 2454302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
run: |
set -exo pipefail
matrix_file="matrix.json"
if [ "${{ inputs.binary-tests}}" == "true" ]; then
if [ "${{ inputs.binary-tests}}" == "true" ] && [ -n "${{ steps.list-binary-tests.outputs.list }}" ]; then
export BINARY_TESTS="${{ steps.list-binary-tests.outputs.list }}"
jq --arg BINARY "${BINARY_TESTS}" --arg BINARY_INDEX "${{ inputs.total-runners }}" \
'.include += [{
Expand Down

0 comments on commit 2454302

Please sign in to comment.