Skip to content

Commit 7b8bf26

Browse files
author
chenby
committed
java 21 support
1 parent 3a311ff commit 7b8bf26

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Java CI
22

33
on: [ push ]
4-
54
jobs:
65
build:
7-
86
runs-on: ubuntu-latest
9-
7+
strategy:
8+
matrix:
9+
java: [ '8', '11', '17', '21' ]
10+
name: Build
1011
steps:
1112
- name: Setup redis 1
1213
uses: getong/redis-action@v1
@@ -20,10 +21,10 @@ jobs:
2021
with:
2122
redis-version: '6.x'
2223
- uses: actions/checkout@v3
23-
- name: Set up JDK 8
24+
- name: Set up JDK ${{ matrix.java }}
2425
uses: actions/setup-java@v3
2526
with:
26-
java-version: '8'
27+
java-version: ${{ matrix.java }}
2728
distribution: 'adopt'
2829
check-latest: false
2930
- name: Build with Maven

0 commit comments

Comments
 (0)