Fix empty list check

This commit is contained in:
Daniel A. Wozniak 2024-12-04 13:54:24 -07:00 committed by Daniel Wozniak
parent 4145006721
commit 8c07ab9972

View file

@ -67,7 +67,7 @@ jobs:
test-linux:
name: ${{ matrix.display_name }} ${{ matrix.tests-chunk }} ${{ matrix.transport }}
if: ${{ fromJSON(inputs.matrix)['linux'] != [] }}
if: ${{ fromJSON(inputs.matrix)['linux'] != '[]' }}
runs-on:
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || 'linux-arm64' }}
container:
@ -317,7 +317,7 @@ jobs:
runs-on: ${{ matrix.runner }}
# Full test runs. Each chunk should never take more than 2 hours.
# Partial test runs(no chunk parallelization), 6 Hours
if: ${{ fromJSON(inputs.matrix)['macos'] != [] }}
if: ${{ fromJSON(inputs.matrix)['macos'] != '[]' }}
timeout-minutes: ${{ fromJSON(inputs.testrun)['type'] == 'full' && inputs.default-timeout || 360 }}
strategy:
fail-fast: false
@ -548,7 +548,7 @@ jobs:
test-windows:
name: ${{ matrix.display_name }} ${{ matrix.tests-chunk }} ${{ matrix.transport }}
if: ${{ fromJSON(inputs.matrix)['windows'] != [] }}
if: ${{ fromJSON(inputs.matrix)['windows'] != '[]' }}
runs-on: ${{ matrix.slug }}
# Full test runs. Each chunk should never take more than 2 hours.
# Partial test runs(no chunk parallelization), 6 Hours