2021-10-03 20:18:31 -04:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
2021-12-14 12:35:31 -05:00
|
|
|
pull_request: # all pull requests
|
2021-10-03 20:18:31 -04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2021-12-14 12:35:31 -05:00
|
|
|
hotspot:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
java: [ '8', '11' ]
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
env:
|
|
|
|
MVN_CMD: ./mvnw --no-transfer-progress -B
|
|
|
|
name: java-${{ matrix.java }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v2.4.0
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
distribution: 'temurin'
|
|
|
|
cache: 'maven'
|
|
|
|
- name: Build
|
|
|
|
run: ${{env.MVN_CMD}} verify
|
|
|
|
- name: Code coverage
|
|
|
|
if: matrix.java == '8'
|
|
|
|
run: |
|
|
|
|
${{env.MVN_CMD}} clean clover:setup test
|
|
|
|
${{env.MVN_CMD}} -pl . clover:clover clover:check coveralls:report \
|
|
|
|
-DrepoToken="${{ secrets.GITHUB_TOKEN }}" \
|
|
|
|
-DserviceName=github \
|
|
|
|
-DserviceBuildNumber="${{ env.GITHUB_RUN_ID }}"
|
|
|
|
|
|
|
|
zulu:
|
2021-10-03 20:18:31 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-14 12:35:31 -05:00
|
|
|
java: [ '9', '10', '14' ]
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
env:
|
|
|
|
MVN_CMD: ./mvnw --no-transfer-progress -B
|
|
|
|
name: java-${{ matrix.java }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v2.4.0
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
distribution: 'zulu'
|
|
|
|
cache: 'maven'
|
|
|
|
- name: Build
|
|
|
|
run: ${{env.MVN_CMD}} verify
|
|
|
|
|
|
|
|
java-7:
|
2021-10-03 20:18:31 -04:00
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
env:
|
|
|
|
MVN_CMD: ./mvnw --no-transfer-progress -B
|
2021-12-14 12:35:31 -05:00
|
|
|
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Xmx512m -XX:MaxPermSize=128m"
|
2021-10-03 20:18:31 -04:00
|
|
|
steps:
|
2021-12-14 12:35:31 -05:00
|
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
- run: |
|
|
|
|
download_url="https://238dj3282as03k369.s3-us-west-1.amazonaws.com/jdk-7u80-linux-x64.tar.gz"
|
|
|
|
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v2.4.0
|
|
|
|
with:
|
|
|
|
distribution: 'jdkfile'
|
|
|
|
jdkFile: ${{ runner.temp }}/java_package.tar.gz
|
|
|
|
java-version: '7'
|
|
|
|
architecture: x64
|
|
|
|
cache: 'maven'
|
|
|
|
- name: "Download and install JCE Unlimited Strength Crypto policies for Oracle JDK 7"
|
|
|
|
run: |
|
|
|
|
curl -q -L -C - https://238dj3282as03k369.s3-us-west-1.amazonaws.com/UnlimitedJCEPolicyJDK7.zip -o $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip
|
|
|
|
unzip -oj -d "$JAVA_HOME/jre/lib/security" $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip \*/\*.jar
|
|
|
|
rm $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip
|
|
|
|
- name: Build
|
|
|
|
run: ${{env.MVN_CMD}} verify
|