Skip to content

Commit

Permalink
Merge pull request #307 from bjagg/chore/ci-upgrade-github-actions-te…
Browse files Browse the repository at this point in the history
…st-matrix

chore(ci): upgrade github actions test matrix
  • Loading branch information
bjagg authored Sep 26, 2024
2 parents b277630 + c9913c5 commit 63e5926
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,34 @@ 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: 10
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: adopt-hotspot
distribution: ${{ matrix.java-distribution }}
java-version: ${{ matrix.java-version }}
- name: Test
run: mvn -B test
- name: Checkstyle
run: mvn -B checkstyle:check --fail-never
- name: Build and Test
run: mvn -B package

0 comments on commit 63e5926

Please sign in to comment.