From 1dc9f57d50f1c4e48d7f7e359813eedcb38e72fd Mon Sep 17 00:00:00 2001 From: Pawel Gudel Date: Wed, 28 Jun 2023 00:02:23 +0200 Subject: [PATCH] Reorder matrix strategy. Is it possible to run windows jobs before ubuntu? Signed-off-by: Pawel Gudel --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b29711746..b42442c94d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,13 +26,13 @@ jobs: run: | echo "separateTestsNames=$(./gradlew listTasksAsJSON -q --console=plain | tail -n 1)" >> $GITHUB_OUTPUT - test: - name: citest + tests: + name: tests strategy: fail-fast: false matrix: + platform: ["windows-latest", "ubuntu-latest"] jdk: [11, 17] - platform: ["ubuntu-latest", "windows-latest"] runs-on: ${{ matrix.platform }} steps: @@ -69,14 +69,14 @@ jobs: if: always() run: echo "Check the artifact ${{ matrix.platform }}-JDK${{ matrix.jdk }}-reports for detailed test results" - build: - name: build + test: + name: test needs: generate-test-list strategy: fail-fast: false matrix: + platform: ["windows-latest", "ubuntu-latest"] jdk: [11, 17] - platform: ["ubuntu-latest", "windows-latest"] gradle_task: ${{ fromJson(needs.generate-test-list.outputs.separateTestsNames) }} runs-on: ${{ matrix.platform }}