Java #1295
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |