Skip to content

Commit 84efd6b

Browse files
committed
Test Spring with --future-defaults
1 parent 0c08eae commit 84efd6b

File tree

3 files changed

+136
-27
lines changed

3 files changed

+136
-27
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
5+
# The Universal Permissive License (UPL), Version 1.0
6+
#
7+
# Subject to the condition set forth below, permission is hereby granted to any
8+
# person obtaining a copy of this software, associated documentation and/or
9+
# data (collectively the "Software"), free of charge and under any and all
10+
# copyright rights in the Software, and any and all patent rights owned or
11+
# freely licensable by each licensor hereunder covering either (i) the
12+
# unmodified Software as contributed to or provided by such licensor, or (ii)
13+
# the Larger Works (as defined below), to deal in both
14+
#
15+
# (a) the Software, and
16+
#
17+
# (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
18+
# one is included with the Software each a "Larger Work" to which the Software
19+
# is contributed by such licensors),
20+
#
21+
# without restriction, including without limitation the rights to copy, create
22+
# derivative works of, display, perform, and distribute the Software and make,
23+
# use, sell, offer for sale, import, export, have made, and have sold the
24+
# Software and the Larger Work(s), and to sublicense the foregoing rights on
25+
# either these or other terms.
26+
#
27+
# This license is subject to the following condition:
28+
#
29+
# The above copyright notice and either this complete permission notice or at a
30+
# minimum a reference to the UPL must be included in all copies or substantial
31+
# portions of the Software.
32+
#
33+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39+
# SOFTWARE.
40+
#
41+
name: Weekly Spring Tests (--future-defaults=all)
42+
43+
on:
44+
pull_request:
45+
paths:
46+
- '.github/workflows/spring-template.yml'
47+
- '.github/workflows/spring.yml'
48+
schedule:
49+
- cron: '0 4 * * 1'
50+
workflow_dispatch:
51+
52+
jobs:
53+
call-template:
54+
uses: './.github/workflows/spring-template.yml'
55+
with:
56+
NATIVE_IMAGE_OPTIONS: '--future-defaults=all'
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#
2+
# Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
5+
# The Universal Permissive License (UPL), Version 1.0
6+
#
7+
# Subject to the condition set forth below, permission is hereby granted to any
8+
# person obtaining a copy of this software, associated documentation and/or
9+
# data (collectively the "Software"), free of charge and under any and all
10+
# copyright rights in the Software, and any and all patent rights owned or
11+
# freely licensable by each licensor hereunder covering either (i) the
12+
# unmodified Software as contributed to or provided by such licensor, or (ii)
13+
# the Larger Works (as defined below), to deal in both
14+
#
15+
# (a) the Software, and
16+
#
17+
# (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
18+
# one is included with the Software each a "Larger Work" to which the Software
19+
# is contributed by such licensors),
20+
#
21+
# without restriction, including without limitation the rights to copy, create
22+
# derivative works of, display, perform, and distribute the Software and make,
23+
# use, sell, offer for sale, import, export, have made, and have sold the
24+
# Software and the Larger Work(s), and to sublicense the foregoing rights on
25+
# either these or other terms.
26+
#
27+
# This license is subject to the following condition:
28+
#
29+
# The above copyright notice and either this complete permission notice or at a
30+
# minimum a reference to the UPL must be included in all copies or substantial
31+
# portions of the Software.
32+
#
33+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39+
# SOFTWARE.
40+
#
41+
name: Weekly Spring Tests
42+
43+
on:
44+
workflow_call:
45+
inputs:
46+
NATIVE_IMAGE_OPTIONS:
47+
required: false
48+
type: string
49+
50+
env:
51+
SPRING_PETCLINIC_PATH: ${{ github.workspace }}/spring-petclinic
52+
SPRING_JAVA_VERSION: 21
53+
54+
permissions:
55+
contents: read # to fetch code (actions/checkout)
56+
57+
jobs:
58+
build-graalvm-and-spring:
59+
name: Native Tests
60+
runs-on: ubuntu-22.04
61+
if: (github.event_name == 'schedule' && github.repository == 'oracle/graal') || (github.event_name != 'schedule')
62+
steps:
63+
- name: Checkout oracle/graal
64+
uses: actions/checkout@v4
65+
- name: Build GraalVM JDK
66+
uses: ./.github/actions/build-graalvm
67+
with:
68+
java-version: ${{ env.SPRING_JAVA_VERSION }}
69+
- name: Checkout spring-projects/spring-petclinic
70+
uses: actions/checkout@v4
71+
with:
72+
repository: spring-projects/spring-petclinic
73+
path: ${{ env.SPRING_PETCLINIC_PATH }}
74+
- name: Run nativeTest in spring-petclinic${{ inputs.NATIVE_IMAGE_OPTIONS && format(' with options ({0})', inputs.NATIVE_IMAGE_OPTIONS) || '' }}
75+
run: |
76+
cd ${{ env.SPRING_PETCLINIC_PATH }}
77+
./gradlew nativeTest

.github/workflows/spring.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,12 @@ name: Weekly Spring Tests
4343
on:
4444
pull_request:
4545
paths:
46+
- '.github/workflows/spring-template.yml'
4647
- '.github/workflows/spring.yml'
4748
schedule:
4849
- cron: '0 4 * * 1'
4950
workflow_dispatch:
5051

51-
env:
52-
SPRING_PETCLINIC_PATH: ${{ github.workspace }}/spring-petclinic
53-
SPRING_JAVA_VERSION: 21
54-
55-
permissions:
56-
contents: read # to fetch code (actions/checkout)
57-
5852
jobs:
59-
build-graalvm-and-spring:
60-
name: Native Tests
61-
runs-on: ubuntu-22.04
62-
if: (github.event_name == 'schedule' && github.repository == 'oracle/graal') || (github.event_name != 'schedule')
63-
steps:
64-
- name: Checkout oracle/graal
65-
uses: actions/checkout@v4
66-
- name: Build GraalVM JDK
67-
uses: ./.github/actions/build-graalvm
68-
with:
69-
java-version: ${{ env.SPRING_JAVA_VERSION }}
70-
- name: Checkout spring-projects/spring-petclinic
71-
uses: actions/checkout@v4
72-
with:
73-
repository: spring-projects/spring-petclinic
74-
path: ${{ env.SPRING_PETCLINIC_PATH }}
75-
- name: Run nativeTest in spring-petclinic
76-
run: |
77-
cd ${{ env.SPRING_PETCLINIC_PATH }}
78-
./gradlew nativeTest
53+
call-template:
54+
uses: './.github/workflows/spring-template.yml'

0 commit comments

Comments
 (0)