discovery endpoint changed in 2019… (#272) #339
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: CAS | |
env: | |
JAVA_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | |
GRADLE_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | |
TERM: xterm-256color | |
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }} | |
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | |
GH_TOKEN: ${{ secrets.GH_PAGES_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JDK_CURRENT: 11 | |
########################################################################## | |
on: | |
push: | |
branches: [ 6.6.x ] | |
pull_request: | |
branches: [ 6.6.x ] | |
########################################################################## | |
jobs: | |
cancel-previous-runs: | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
steps: | |
- uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
initialize: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: ls ./ci && chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
########################################################################## | |
cache: | |
runs-on: ubuntu-latest | |
needs: [initialize] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: ls ./ci && chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/checkout@v2 | |
- name: Download Dependencies | |
run: ./ci/download-dependencies.sh | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
########################################################################## | |
build: | |
needs: [cache] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
shell: bash | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build with Gradle | |
run: ./ci/build.sh | |
########################################################################## | |
static-analysis: | |
runs-on: ubuntu-latest | |
needs: [build] | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Run Static Analysis | |
run: ./ci/analyze-style.sh | |
########################################################################## | |
validate-javadocs: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Validate Javadocs | |
run: ./ci/build-javadocs.sh | |
########################################################################## | |
publish-snapshots: | |
runs-on: ubuntu-latest | |
needs: [cache] | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Publish SNAPSHOTs | |
if: ${{ env.SONATYPE_USER != null && env.SONATYPE_PWD != null }} | |
run: ./ci/publish-snapshots-release.sh | |
########################################################################## | |
publish-docs: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' }} | |
needs: [cache] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Publish Documentation | |
run: ./ci/push-docs-ghpages.sh 6.3.x | |
########################################################################## | |
tests: | |
needs: [cache] | |
continue-on-error: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Run Tests | |
run: ./ci/tests/run-tests-simple.sh | |
########################################################################## | |