-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add tests for latest release of Eclipse
- Loading branch information
1 parent
4772848
commit 94f7713
Showing
5 changed files
with
101 additions
and
5 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,62 @@ | ||
name: Eclipse latest release on Java 11 | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
env: | ||
CLOUDSDK_CORE_DISABLE_USAGE_REPORTING: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 # Java 8 required for compilation. | ||
- name: Set JDK 8 toolchain | ||
run: | | ||
sed -i.bak -e "s,JDK_8_HOME,${JAVA_HOME}," .github/workflows/toolchains.xml | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Set JDK 11 toolchain | ||
run: | | ||
sed -i.bak -e "s,JDK_11_HOME,${JAVA_HOME}," .github/workflows/toolchains.xml | ||
- uses: google-github-actions/[email protected] | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven-${{ env.ECLIPSE_TARGET }} | ||
- name: Run tests | ||
env: | ||
MAVEN_OPTS: '-Xmx700m -Dorg.slf4j.simpleLogger.showDateTime=true' | ||
run: | | ||
# google-github-actions/[email protected] sets up gcloud at, e.g,. | ||
# "/opt/hostedtoolcache/gcloud/325.0.0/x64". appengine-plugins-core | ||
# fails to find it, since the directory doesn't end with | ||
# "google-cloud-sdk". Instead, appengine-plugins-core picks up the SDK | ||
# at "/usr/lib/google-cloud-sdk" managed by a package manager. As a | ||
# workaround, create a symlink at $HOME and add it to $PATH. | ||
ln -s "$( dirname "$( dirname "$( which gcloud )")")" \ | ||
"${HOME}"/google-cloud-sdk | ||
ls -ld "${HOME}"/google-cloud-sdk | ||
export PATH="${HOME}/google-cloud-sdk/bin:${PATH}" | ||
gcloud components install app-engine-java --quiet | ||
xvfb-run mvn --show-version --batch-mode --fail-at-end \ | ||
--toolchains=.github/workflows/toolchains.xml \ | ||
-Derrorprone -Dci-build \ | ||
clean verify |
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
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