From 569cd0ce90c5df10bd8fe269f5ea8e1226ae01fe Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Thu, 25 Jul 2024 08:36:25 -0700 Subject: [PATCH] chore(ci): update test matrix diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1020440..56c20ef 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -28,24 +28,31 @@ on: jobs: test: - name: '${{ matrix.platform }} with Java ${{ matrix.java-version }}' + name: '${{ matrix.platform }} with Java ${{ matrix.java-distribution }} version ${{ matrix.java-version }}' strategy: matrix: platform: - ubuntu-latest - - windows-latest - - macos-latest + java-distribution: + - adopt-hotspot + - temurin + - zulu java-version: - 8 - 11 + include: + - platform: windows-latest + java-distribution: adopt-hotspot + java-version: 11 + - platform: macos-latest + java-distribution: adopt-hotspot + java-version: 11 runs-on: ${{ matrix.platform }} + timeout-minutes: 5 steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - distribution: adopt-hotspot + distribution: ${{ matrix.java-distribution }} java-version: ${{ matrix.java-version }} - - name: Test - run: mvn -B test + - run: mvn -B test --- .github/workflows/CI.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 10204404..56c20ef3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -28,24 +28,31 @@ on: jobs: test: - name: '${{ matrix.platform }} with Java ${{ matrix.java-version }}' + name: '${{ matrix.platform }} with Java ${{ matrix.java-distribution }} version ${{ matrix.java-version }}' strategy: matrix: platform: - ubuntu-latest - - windows-latest - - macos-latest + java-distribution: + - adopt-hotspot + - temurin + - zulu java-version: - 8 - 11 + include: + - platform: windows-latest + java-distribution: adopt-hotspot + java-version: 11 + - platform: macos-latest + java-distribution: adopt-hotspot + java-version: 11 runs-on: ${{ matrix.platform }} + timeout-minutes: 5 steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up JDK - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - distribution: adopt-hotspot + distribution: ${{ matrix.java-distribution }} java-version: ${{ matrix.java-version }} - - name: Test - run: mvn -B test + - run: mvn -B test