-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.02 KB
/
ci-boot2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI with Spring Boot 2.x
on:
push:
branches: [ master ]
schedule:
- cron: "0 0 * * *"
jobs:
build:
name: Test with ${{ matrix.spring-boot-version }} on JDK ${{ matrix.java }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java: [17, 21]
distribution: ['zulu']
spring-boot-version: ['2.7']
fail-fast: false
max-parallel: 6
steps:
- uses: actions/checkout@v4
- name: Set JDK from jdk.java.net
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java }}
if: ${{ matrix.java != '17' }}
- name: Set up older JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
if: ${{ matrix.java == '17' }}
- name: Show a Java version
run: java -version
- name: Verify a compatibility
run: ./verify.sh ${{ matrix.spring-boot-version }}