diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 81e23115798..8f278a2b926 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,20 +52,13 @@ jobs: timeout-minutes: 360 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.profile.jdk }} - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.profile.jdk }} distribution: temurin - - name: Cache local maven repository - uses: actions/cache@v3 - with: - path: | - ~/.m2/repository/ - !~/.m2/repository/org/apache/zookeeper - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: 'maven' - name: Show the first log message run: git log -n1 - name: Install C Dependencies diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index e497c3f0396..b47c300d43e 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -31,20 +31,13 @@ jobs: timeout-minutes: 360 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK ${{ matrix.jdk }} - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.jdk }} distribution: temurin - - name: Cache local maven repository - uses: actions/cache@v3 - with: - path: | - ~/.m2/repository/ - !~/.m2/repository/org/apache/zookeeper - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: 'maven' - name: Show the first log message run: git log -n1 - name: Install C Dependencies diff --git a/.github/workflows/manual.yaml b/.github/workflows/manual.yaml index fd0c5f171d0..898fd283b9c 100644 --- a/.github/workflows/manual.yaml +++ b/.github/workflows/manual.yaml @@ -43,22 +43,15 @@ jobs: timeout-minutes: 360 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.buildRef }} - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 11 distribution: temurin - - name: Cache local maven repository - uses: actions/cache@v3 - with: - path: | - ~/.m2/repository/ - !~/.m2/repository/org/apache/zookeeper - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: 'maven' - name: Show the first log message run: git log -n1 - name: Install C Dependencies