Skip to content

Commit

Permalink
Run build and tests with multiple JDK releases
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaarni committed Oct 28, 2024
1 parent d697b10 commit b8adb1d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,22 @@ on:
branches: [ main ]

jobs:
gradle:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17', '21' ]
name: Java ${{ matrix.Java }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: ${{ matrix.java }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v4

- name: Execute Gradle build
run: ./gradlew build

0 comments on commit b8adb1d

Please sign in to comment.