|
| 1 | +# |
| 2 | +# Copyright (c) 2023, 2025 Oracle and/or its affiliates. |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +name: "Nightly Build" |
| 17 | + |
| 18 | +on: |
| 19 | + schedule: |
| 20 | + - cron: '0 10 * * 1' |
| 21 | + |
| 22 | +env: |
| 23 | + MVN_ARGS: | |
| 24 | + -B -fae -e |
| 25 | + -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 |
| 26 | + -Dmaven.wagon.http.retryHandler.count=3 |
| 27 | + -Djdk.toolchain.version=${JAVA_VERSION} |
| 28 | + -Dcache.enabled=true |
| 29 | +
|
| 30 | +jobs: |
| 31 | + build: |
| 32 | + timeout-minutes: 15 |
| 33 | + runs-on: ubuntu-22.04 |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + ref: ${{ inputs.ref }} |
| 38 | + - uses: ./.github/actions/common |
| 39 | + with: |
| 40 | + build-cache: read-write |
| 41 | + maven-cache: read-write |
| 42 | + cache-key-prefix: latest-java- |
| 43 | + setup-latest-java: true |
| 44 | + run: | |
| 45 | + mvn ${MVN_ARGS} --version |
| 46 | + mvn ${MVN_ARGS} build-cache:go-offline |
| 47 | + mvn ${MVN_ARGS} -T8 \ |
| 48 | + -Dorg.slf4j.simpleLogger.showThreadName=true \ |
| 49 | + -DskipTests \ |
| 50 | + -Ptests \ |
| 51 | + install |
| 52 | + tests: |
| 53 | + needs: build |
| 54 | + timeout-minutes: 30 |
| 55 | + strategy: |
| 56 | + matrix: |
| 57 | + os: [ ubuntu-22.04, windows-2022 ] |
| 58 | + moduleSet: [ core, it, jpa, jpa-oracle, dbclient, dbclient-oracle, others ] |
| 59 | + include: |
| 60 | + - { os: ubuntu-22.04, platform: linux } |
| 61 | + - { os: windows-2022, platform: windows } |
| 62 | + runs-on: ${{ matrix.os }} |
| 63 | + name: tests/${{ matrix.moduleSet }}-${{matrix.platform}}-latest-java |
| 64 | + steps: |
| 65 | + - uses: actions/checkout@v4 |
| 66 | + with: |
| 67 | + ref: ${{ inputs.ref }} |
| 68 | + - uses: ./.github/actions/common |
| 69 | + with: |
| 70 | + build-cache: read-only |
| 71 | + cache-key-prefix: latest-java- |
| 72 | + setup-latest-java: true |
| 73 | + test-artifact-name: tests-${{ matrix.moduleSet }}-${{ matrix.platform }}-latest-java |
| 74 | + run: | |
| 75 | + mvn --version |
| 76 | + mvn ${MVN_ARGS} \ |
| 77 | + -DreactorRule=tests \ |
| 78 | + -DmoduleSet=${{ matrix.moduleSet }} \ |
| 79 | + -Dsurefire.reportNameSuffix=${{ matrix.platform }} \ |
| 80 | + verify |
0 commit comments