diff --git a/.github/workflows/api-test.yml b/.github/workflows/api-test.yml index 2de39855233f..8ab3de9ec31a 100644 --- a/.github/workflows/api-test.yml +++ b/.github/workflows/api-test.yml @@ -64,6 +64,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Sanity Check uses: ./.github/actions/sanity-check with: @@ -130,6 +135,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Set up JDK 11 uses: actions/setup-java@v5 with: diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 969e3165e0e7..8a8002665a0f 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -62,6 +62,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v5 with: diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 8125a0108c78..2b5ad0a472e3 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -43,6 +43,12 @@ jobs: with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} + - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 028ec735dae1..e80da644ef42 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,6 +32,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Style Check run: ./mvnw spotless:check img-check: @@ -90,6 +95,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Generating helm-doc run: | ./mvnw validate -P helm-doc -pl :dolphinscheduler diff --git a/.github/workflows/e2e-k8s.yml b/.github/workflows/e2e-k8s.yml index d8ce37399f9f..6a7c0bb9cb83 100644 --- a/.github/workflows/e2e-k8s.yml +++ b/.github/workflows/e2e-k8s.yml @@ -64,6 +64,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - run: df -h - name: Build Image run: | diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9ce4eb9f3c4b..7f9feef50f34 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -59,6 +59,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Sanity Check uses: ./.github/actions/sanity-check with: @@ -150,6 +155,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Set up JDK 11 uses: actions/setup-java@v5 with: diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index e7e75a920933..24f9b902b0be 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -65,6 +65,12 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - if: matrix.os == 'ubuntu-latest' + name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - if: matrix.os == 'ubuntu-latest' name: Sanity Check uses: ./.github/actions/sanity-check diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 2117250026a0..65f14b0bc144 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -51,6 +51,11 @@ jobs: - uses: actions/checkout@v6 with: submodules: true + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Sanity Check uses: ./.github/actions/sanity-check with: @@ -115,6 +120,11 @@ jobs: java-version: ${{ matrix.java }} distribution: 'adopt' + - name: Cache Maven Wrapper + uses: actions/cache@v5 + with: + path: ~/.m2/wrapper + key: ${{ runner.os }}-mvnw-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - uses: actions/cache@v5 with: path: ~/.m2/repository