From 53c718c14218db056a5c13d24aa863f8860894a9 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 2 Mar 2026 03:34:12 +0100 Subject: [PATCH 1/2] [CI][skip ci] Fix TEST job failure when no branches changed --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b08d0031aa111..402403a24887c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,6 +58,7 @@ jobs: id: set-matrix run: php .github/matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.event_name == 'pull_request' && github.ref || github.ref_name }}" '${{ toJSON(github.event.pull_request.labels) }}' "${{ github.repository }}" TEST: + if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} needs: GENERATE_MATRIX name: ${{ matrix.branch.name }} uses: ./.github/workflows/test-suite.yml From e1404851780c2e46b0475735a604139414fefefc Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 2 Mar 2026 03:37:46 +0100 Subject: [PATCH 2/2] [skip ci] Reorder lines Makes slightly more sense, even though order is irrelevant. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 402403a24887c..69ba4c0e48650 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,8 +58,8 @@ jobs: id: set-matrix run: php .github/matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.event_name == 'pull_request' && github.ref || github.ref_name }}" '${{ toJSON(github.event.pull_request.labels) }}' "${{ github.repository }}" TEST: - if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} needs: GENERATE_MATRIX + if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} name: ${{ matrix.branch.name }} uses: ./.github/workflows/test-suite.yml strategy: