Skip to content

Commit adde42d

Browse files
authored
Merge pull request #639 from kazuki43zoo/gh-634_add-new-workflow-for-compatibility-check-spring6
Add the new GitHub workflow for checking compatibility with Spring 6 and Spring Batch 5
2 parents 5f855f2 + ca96e63 commit adde42d

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#
2+
# Copyright 2010-2021 the original author or authors.
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+
17+
name: Compatibility with Spring 6/Spring Batch 5
18+
19+
on:
20+
push:
21+
pull_request:
22+
schedule:
23+
- cron: "0 0 * * *"
24+
25+
jobs:
26+
test:
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
matrix:
30+
os: [ubuntu-latest, macOS-latest, windows-latest]
31+
java: [17, 18-ea]
32+
distribution: ['zulu']
33+
fail-fast: false
34+
max-parallel: 2
35+
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
with:
40+
fetch-depth: 0
41+
- name: Set up JDK
42+
uses: actions/setup-java@v2
43+
with:
44+
java-version: ${{ matrix.java }}
45+
distribution: ${{ matrix.distribution }}
46+
- name: Git config
47+
run: |
48+
git config --local user.email "action@github.com"
49+
git config --local user.name "GitHub Action"
50+
- name: Checkout to local
51+
run: git checkout -b compatibility-check-spring6-head
52+
- name: Checkout compatibility check brach
53+
run: git checkout compatibility-check-spring6
54+
- name: Merge to compatibility check brach
55+
run: git merge --no-edit compatibility-check-spring6-head
56+
- name: Test with Spring 6 / Spring Batch 5 support
57+
run: ./mvnw -U test -D"license.skip=true" -D"animal.sniffer.skip=true" -D"spring.version=6.0.0-SNAPSHOT" -D"spring-batch.version=5.0.0-SNAPSHOT"

0 commit comments

Comments
 (0)