Fix Error Prone configuration #1101
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 CI with Gradle | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# No version of spotles works on both JRE 8 and JRE 21. | |
java: [ '8', '11', '17', '20' ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
show-progress: false | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: java -version | |
run: java -version | |
- name: ./gradlew build javadoc | |
run: ./gradlew build | |
- name: ./gradlew requireJavadoc | |
run: ./gradlew requireJavadoc | |
# TODO: This might be done by "./gradlew build" | |
- name: ./gradlew spotlessCheck | |
run: ./gradlew spotlessCheck |