Skip to content

Commit 2170501

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

File tree

2 files changed

+80
-50
lines changed

2 files changed

+80
-50
lines changed

.github/workflows/nightly.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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

.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)