Skip to content

Commit

Permalink
Build against multiple jdks
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Feb 24, 2024
1 parent 901b5fe commit a74e23d
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/publish-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,39 @@ permissions: read-all

jobs:
gradle:
name: Test with Java ${{ matrix.jdk }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
jdk: [ '11', '17', '21' ] # removed JDK due to plugin errors

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
cache: 'gradle'

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

- name: Execute Gradle build
run: ./gradlew check -x test --console=plain --warning-mode all

publish:
name: Publish Artifact
needs: gradle
if: ${{ needs.gradle.result == 'success' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
Expand Down

0 comments on commit a74e23d

Please sign in to comment.