HHH-14946 Upgrade Github Actions to use Java 11 exclusively
This commit is contained in:
parent
334aeb1349
commit
78c3ae11e0
|
@ -17,7 +17,7 @@ on:
|
||||||
- 'wip/6.0'
|
- 'wip/6.0'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Java 8
|
name: Java 11
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# We want to know the test results of all matrix entries
|
# We want to know the test results of all matrix entries
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
@ -62,10 +62,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
RDBMS: ${{ matrix.rdbms }}
|
RDBMS: ${{ matrix.rdbms }}
|
||||||
run: ci/database-start.sh
|
run: ci/database-start.sh
|
||||||
- name: Set up Java 8
|
- name: Set up Java 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 11
|
||||||
- name: Get year/month for cache key
|
- name: Get year/month for cache key
|
||||||
id: get-date
|
id: get-date
|
||||||
run: |
|
run: |
|
||||||
|
@ -90,48 +90,7 @@ jobs:
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: test-reports-java8-${{ matrix.rdbms }}
|
name: test-reports-java11-${{ matrix.rdbms }}
|
||||||
path: |
|
|
||||||
./**/target/reports/tests/
|
|
||||||
./**/target/reports/checkstyle/
|
|
||||||
- name: Omit produced artifacts from build cache
|
|
||||||
run: ./ci/before-cache.sh
|
|
||||||
build11:
|
|
||||||
name: Java 11
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# We want to know the test results of all matrix entries
|
|
||||||
continue-on-error: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
- name: Set up Java 11
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 11
|
|
||||||
- name: Get year/month for cache key
|
|
||||||
id: get-date
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
|
|
||||||
shell: bash
|
|
||||||
- name: Cache Maven local repository
|
|
||||||
uses: actions/cache@v2
|
|
||||||
id: cache-maven
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2/repository
|
|
||||||
~/.gradle/caches/
|
|
||||||
~/.gradle/wrapper/
|
|
||||||
# refresh cache every month to avoid unlimited growth
|
|
||||||
key: maven-localrepo-${{ steps.get-date.outputs.yearmonth }}
|
|
||||||
- name: Run build script
|
|
||||||
run: ./ci/build-github.sh
|
|
||||||
shell: bash
|
|
||||||
- name: Upload test reports (if Gradle failed)
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
name: test-reports-java11
|
|
||||||
path: |
|
path: |
|
||||||
./**/target/reports/tests/
|
./**/target/reports/tests/
|
||||||
./**/target/reports/checkstyle/
|
./**/target/reports/checkstyle/
|
||||||
|
|
Loading…
Reference in New Issue