Skip to content

Commit

Permalink
bump versions for used actions
Browse files Browse the repository at this point in the history
run workflow against Java 21 in addition
trigger workflow on any push, regardless of branch

Signed-off-by: Jonas Höf <jonas.hoef@tngtech.com>
  • Loading branch information
jonashoef committed Nov 13, 2024
1 parent 3eea8d8 commit 2293773
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch: # allows manual triggering
Expand All @@ -18,19 +17,20 @@ jobs:
strategy:
fail-fast: false # ensures build runs for all three JDKs
matrix:
java: [ '8', '11', '17' ]
java: [ '8', '11', '17', '21' ]

name: Java ${{ matrix.Java }}

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: clean build
gradle-version: 8.5 # facilitates compatibility with JDK 21
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.5"
- name: Build with Gradle
run: ./gradlew clean build

0 comments on commit 2293773

Please sign in to comment.