Skip to content

Commit 14cdff3

Browse files
committed
Move to nightly build
1 parent 2885f52 commit 14cdff3

File tree

2 files changed

+82
-50
lines changed

2 files changed

+82
-50
lines changed

.github/workflows/nightly.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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: '5 * * * *'
21+
22+
env:
23+
GRAALVM_VERSION: 21.0.3
24+
JAVA_DISTRO: oracle
25+
MVN_ARGS: |
26+
-B -fae -e
27+
-Dmaven.wagon.httpconnectionManager.ttlSeconds=60
28+
-Dmaven.wagon.http.retryHandler.count=3
29+
-Djdk.toolchain.version=${JAVA_VERSION}
30+
-Dcache.enabled=true
31+
32+
jobs:
33+
build:
34+
timeout-minutes: 15
35+
runs-on: ubuntu-22.04
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
ref: ${{ inputs.ref }}
40+
- uses: ./.github/actions/common
41+
with:
42+
build-cache: read-write
43+
maven-cache: read-write
44+
cache-key-prefix: latest-java-
45+
setup-latest-java: true
46+
run: |
47+
mvn ${MVN_ARGS} --version
48+
mvn ${MVN_ARGS} build-cache:go-offline
49+
mvn ${MVN_ARGS} -T8 \
50+
-Dorg.slf4j.simpleLogger.showThreadName=true \
51+
-DskipTests \
52+
-Ptests \
53+
install
54+
tests:
55+
needs: build
56+
timeout-minutes: 30
57+
strategy:
58+
matrix:
59+
os: [ ubuntu-22.04, windows-2022 ]
60+
moduleSet: [ core, it, jpa, jpa-oracle, dbclient, dbclient-oracle, others ]
61+
include:
62+
- { os: ubuntu-22.04, platform: linux }
63+
- { os: windows-2022, platform: windows }
64+
runs-on: ${{ matrix.os }}
65+
name: tests/${{ matrix.moduleSet }}-${{matrix.platform}}-latest-java
66+
steps:
67+
- uses: actions/checkout@v4
68+
with:
69+
ref: ${{ inputs.ref }}
70+
- uses: ./.github/actions/common
71+
with:
72+
build-cache: read-only
73+
cache-key-prefix: latest-java-
74+
setup-latest-java: true
75+
test-artifact-name: tests-${{ matrix.moduleSet }}-${{ matrix.platform }}-latest-java
76+
run: |
77+
mvn --version
78+
mvn ${MVN_ARGS} \
79+
-DreactorRule=tests \
80+
-DmoduleSet=${{ matrix.moduleSet }} \
81+
-Dsurefire.reportNameSuffix=${{ matrix.platform }} \
82+
verify

.github/workflows/validate.yml

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -94,56 +94,6 @@ jobs:
9494
-DskipTests \
9595
-Ptests \
9696
install
97-
build-latest-java:
98-
timeout-minutes: 15
99-
runs-on: ubuntu-22.04
100-
steps:
101-
- uses: actions/checkout@v4
102-
with:
103-
ref: ${{ inputs.ref }}
104-
- uses: ./.github/actions/common
105-
with:
106-
build-cache: read-write
107-
maven-cache: read-write
108-
cache-key-prefix: latest-java-
109-
setup-latest-java: true
110-
run: |
111-
mvn ${MVN_ARGS} --version
112-
mvn ${MVN_ARGS} build-cache:go-offline
113-
mvn ${MVN_ARGS} -T8 \
114-
-Dorg.slf4j.simpleLogger.showThreadName=true \
115-
-DskipTests \
116-
-Ptests \
117-
install
118-
_tests-latest-java:
119-
needs: build-latest-java
120-
timeout-minutes: 30
121-
strategy:
122-
matrix:
123-
os: [ ubuntu-22.04, windows-2022 ]
124-
moduleSet: [ core, it, jpa, jpa-oracle, dbclient, dbclient-oracle, others ]
125-
include:
126-
- { os: ubuntu-22.04, platform: linux }
127-
- { os: windows-2022, platform: windows }
128-
runs-on: ${{ matrix.os }}
129-
name: tests/${{ matrix.moduleSet }}-${{matrix.platform}}-latest-java
130-
steps:
131-
- uses: actions/checkout@v4
132-
with:
133-
ref: ${{ inputs.ref }}
134-
- uses: ./.github/actions/common
135-
with:
136-
build-cache: read-only
137-
cache-key-prefix: latest-java-
138-
setup-latest-java: true
139-
test-artifact-name: tests-${{ matrix.moduleSet }}-${{ matrix.platform }}-latest-java
140-
run: |
141-
mvn --version
142-
mvn ${MVN_ARGS} \
143-
-DreactorRule=tests \
144-
-DmoduleSet=${{ matrix.moduleSet }} \
145-
-Dsurefire.reportNameSuffix=${{ matrix.platform }} \
146-
verify
14797
_tests:
14898
needs: build
14999
timeout-minutes: 30

0 commit comments

Comments
 (0)