Skip to content

Java

Java #1355

Workflow file for this run

name: Java
on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
build:
name: Build on jdk ${{ matrix.java }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
java: [17.x.x, 21.x.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
cache: 'gradle'
cache-dependency-path: |
./.gradle*
./**/gradle-wrapper.properties
java-version: ${{ matrix.java}}
- name: Build the plugin using Gradle
run: ./gradlew buildPlugin
- name: Run the tests
run: ./gradlew test