Skip to content

Commit 699acae

Browse files
SamBarkergyfora
authored andcommitted
[FlINK-36393] Update to actions/checkout@v4 and actions/setup-java@v4
adopt is no longer updated see https://github.com/actions/setup-java?tab=readme-ov-file#supported-version-syntax so switch to temurin. The cache action is now configured by setup-java so there is no need to manage it directly.
1 parent 6d148a8 commit 699acae

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,13 @@ jobs:
3232
matrix:
3333
java-version: [ 11, 17, 21 ]
3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3636
- name: Set up JDK ${{ matrix.java-version }}
37-
uses: actions/setup-java@v2
37+
uses: actions/setup-java@v4
3838
with:
3939
java-version: ${{ matrix.java-version }}
40-
distribution: 'adopt'
41-
- name: Cache local Maven repository
42-
uses: actions/cache@v3
43-
with:
44-
path: ~/.m2/repository
45-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
46-
restore-keys: |
47-
${{ runner.os }}-maven-
40+
distribution: 'temurin'
41+
cache: 'maven'
4842
- name: Build with Maven
4943
run: |
5044
mvn -B clean install javadoc:javadoc -Pgenerate-docs
@@ -148,19 +142,13 @@ jobs:
148142
java-version: 21
149143
name: e2e_ci
150144
steps:
151-
- uses: actions/checkout@v2
145+
- uses: actions/checkout@v4
152146
- name: Set up JDK ${{ matrix.java-version }}
153-
uses: actions/setup-java@v2
147+
uses: actions/setup-java@v4
154148
with:
155149
java-version: ${{ matrix.java-version }}
156-
distribution: 'adopt'
157-
- name: Cache local Maven repository
158-
uses: actions/cache@v3
159-
with:
160-
path: ~/.m2/repository
161-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
162-
restore-keys: |
163-
${{ runner.os }}-maven-
150+
distribution: 'temurin'
151+
cache: 'maven'
164152
- name: Start minikube
165153
run: |
166154
source e2e-tests/utils.sh

0 commit comments

Comments
 (0)