-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
743c10e
commit 6acef3e
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build and verify with JDK 11 | ||
on: | ||
pull_request: | ||
push: | ||
branches: [ master ] | ||
permissions: | ||
contents: read | ||
jobs: | ||
transform-and-build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: | | ||
11.0.18 | ||
17.0.6 | ||
distribution: temurin | ||
cache: maven | ||
- name: Transform the source code to be JDK 11 compatible | ||
run: mvn clean install -DskipTests -Dverification.skip && ./to-11.sh | ||
- name: Build project against vanilla Error Prone, compile Javadoc | ||
run: JAVA_HOME="JAVA_HOME_11_${env:RUNNER_ARCH}" mvn -T1C install javadoc:jar | ||
- name: Build project with self-check against Error Prone fork | ||
run: JAVA_HOME="JAVA_HOME_11_${env:RUNNER_ARCH}" mvn -T1C clean verify -Perror-prone-fork -Pnon-maven-central -Pself-check -s settings.xml | ||
- name: Remove installed project artifacts | ||
run: mvn build-helper:remove-project-artifact |
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
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