Skip to content

Commit aba99cf

Browse files
authored
[CI] (Trivial) Update GitHub Actions
Reviewers: anmolnar Author: ctubbsii Closes #2216 from ctubbsii/update-ga-v4
1 parent 333c8b8 commit aba99cf

File tree

3 files changed

+14
-35
lines changed

3 files changed

+14
-35
lines changed

.github/workflows/ci.yaml

+6-13
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,13 @@ jobs:
4848
timeout-minutes: 360
4949
runs-on: ubuntu-latest
5050
steps:
51-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
5252
- name: Set up JDK ${{ matrix.profile.jdk }}
53-
uses: actions/setup-java@v3
53+
uses: actions/setup-java@v4
5454
with:
5555
java-version: ${{ matrix.profile.jdk }}
5656
distribution: temurin
57-
- name: Cache local maven repository
58-
uses: actions/cache@v3
59-
with:
60-
path: |
61-
~/.m2/repository/
62-
!~/.m2/repository/org/apache/zookeeper
63-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
64-
restore-keys: ${{ runner.os }}-m2
57+
cache: 'maven'
6558
- name: Show the first log message
6659
run: git log -n1
6760
- name: Install C Dependencies
@@ -74,21 +67,21 @@ jobs:
7467
MAVEN_OPTS: -Djansi.force=true
7568
- name: Upload unit test results
7669
if: ${{ failure() }}
77-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7871
with:
7972
name: surefire-reports-${{ matrix.profile.name }}
8073
path: ./**/target/surefire-reports/
8174
if-no-files-found: ignore
8275
- name: Upload integration test results
8376
if: ${{ failure() }}
84-
uses: actions/upload-artifact@v3
77+
uses: actions/upload-artifact@v4
8578
with:
8679
name: failsafe-reports-${{ matrix.profile.name }}
8780
path: ./**/target/failsafe-reports/
8881
if-no-files-found: ignore
8982
- name: Upload cppunit test logs
9083
if: ${{ failure() }}
91-
uses: actions/upload-artifact@v3
84+
uses: actions/upload-artifact@v4
9285
with:
9386
name: cppunit-logs-${{ matrix.profile.name }}
9487
path: ./zookeeper-client/zookeeper-client-c/target/c/TEST-*.txt

.github/workflows/e2e.yaml

+3-10
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,13 @@ jobs:
3131
timeout-minutes: 360
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- name: Set up JDK ${{ matrix.jdk }}
36-
uses: actions/setup-java@v3
36+
uses: actions/setup-java@v4
3737
with:
3838
java-version: ${{ matrix.jdk }}
3939
distribution: temurin
40-
- name: Cache local maven repository
41-
uses: actions/cache@v3
42-
with:
43-
path: |
44-
~/.m2/repository/
45-
!~/.m2/repository/org/apache/zookeeper
46-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
47-
restore-keys: ${{ runner.os }}-m2
40+
cache: 'maven'
4841
- name: Show the first log message
4942
run: git log -n1
5043
- name: Install C Dependencies

.github/workflows/manual.yaml

+5-12
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,15 @@ jobs:
4343
timeout-minutes: 360
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
4747
with:
4848
ref: ${{ github.event.inputs.buildRef }}
4949
- name: Set up JDK 11
50-
uses: actions/setup-java@v3
50+
uses: actions/setup-java@v4
5151
with:
5252
java-version: 11
5353
distribution: temurin
54-
- name: Cache local maven repository
55-
uses: actions/cache@v3
56-
with:
57-
path: |
58-
~/.m2/repository/
59-
!~/.m2/repository/org/apache/zookeeper
60-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
61-
restore-keys: ${{ runner.os }}-m2
54+
cache: 'maven'
6255
- name: Show the first log message
6356
run: git log -n1
6457
- name: Install C Dependencies
@@ -71,14 +64,14 @@ jobs:
7164
MAVEN_OPTS: -Djansi.force=true
7265
- name: Upload unit test results
7366
if: ${{ failure() }}
74-
uses: actions/upload-artifact@v3
67+
uses: actions/upload-artifact@v4
7568
with:
7669
name: surefire-reports
7770
path: ./**/target/surefire-reports/
7871
if-no-files-found: ignore
7972
- name: Upload integration test results
8073
if: ${{ failure() }}
81-
uses: actions/upload-artifact@v3
74+
uses: actions/upload-artifact@v4
8275
with:
8376
name: failsafe-reports
8477
path: ./**/target/failsafe-reports/

0 commit comments

Comments
 (0)