Skip to content

Commit

Permalink
More java versions (will prune later)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 13, 2024
1 parent f5e4392 commit a15f50a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 13 deletions.
49 changes: 38 additions & 11 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,58 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest']
java-version: [8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
version:
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
distribution:
- temurin
- zulu
- liberica
- microsoft
- corretto
- semeru
- oracle
- dragonwell
include:
- os: windows-latest
java-version: 21
- os: macos-latest
java-version: 21
- os: windows-latest
version: 21
distribution: temurin
- os: macos-latest
version: 21
distribution: temurin

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
java-version: ${{ matrix.version }}
distribution: ${{ matrix.distribution }}
cache: maven
cache-dependency-path: "java/pom.xml"

- name: Run tests (serially)
if: ${{ matrix.java-version == 21 && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.version == 21 && matrix.os == 'ubuntu-latest' }}
run: make ja_test

- name: Run tests (in parallel)
if: ${{ matrix.java-version != 21 || matrix.os != 'ubuntu-latest' }}
if: ${{ matrix.version != 21 || matrix.os != 'ubuntu-latest' }}
run: make ja_test_auto

- name: Upload code coverage to Codecov
Expand Down
3 changes: 1 addition & 2 deletions java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ target/jacoco.exec: ../LICENSE
test: target/jacoco.exec
@$(MVN) $(MVN_FLAGS) test -Dtest.single

test_auto: target/jacoco.exec
@$(MVN) $(MVN_FLAGS) test -T 1C
test_auto: test_1C

.PHONY: test_%
test_%: target/jacoco.exec
Expand Down

0 comments on commit a15f50a

Please sign in to comment.