From 8c07ab99723920f7d5f68773aa281bc5de6b3952 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Wed, 4 Dec 2024 13:54:24 -0700 Subject: [PATCH] Fix empty list check --- .github/workflows/test-action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 1c37ffd06d5..474b1ae0a2f 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -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