Skip to content

Commit

Permalink
Reorder matrix strategy.
Browse files Browse the repository at this point in the history
Is it possible to run windows jobs before ubuntu?

Signed-off-by: Pawel Gudel <pawel.gudel@eliatra.com>
  • Loading branch information
pawel-gudel-eliatra committed Jun 27, 2023
1 parent 57b483e commit 1dc9f57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}

Expand Down

0 comments on commit 1dc9f57

Please sign in to comment.