diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50b6bc565d366..7b541227dbd5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,13 +65,13 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup JDK 11 for Build - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} @@ -80,7 +80,7 @@ jobs: - name: Build Project with Maven run: ./mvnw clean install -B -ntp -DskipTests -T1C - name: Setup JDK 8 for Test - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 8 diff --git a/.github/workflows/e2e-agent.yml b/.github/workflows/e2e-agent.yml index c47be81a2eda0..ff1bb3c87c719 100644 --- a/.github/workflows/e2e-agent.yml +++ b/.github/workflows/e2e-agent.yml @@ -96,12 +96,12 @@ jobs: feature: tracing plugin: zipkin steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/e2e-operation.yml b/.github/workflows/e2e-operation.yml index b08ff3d2bd4ed..e149be54072d9 100644 --- a/.github/workflows/e2e-operation.yml +++ b/.github/workflows/e2e-operation.yml @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dorny/paths-filter@v2 id: filter with: @@ -86,10 +86,10 @@ jobs: fi - name: Checkout Project if: (env.skip_current_step == 'false') - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Retrieve Maven Caches if: (env.skip_current_step == 'false') - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache-${{ github.sha }} @@ -97,7 +97,7 @@ jobs: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache- ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- - if: (env.skip_current_step == 'false') - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml index 9f54680a03e7e..f01243a28345b 100644 --- a/.github/workflows/e2e-sql.yml +++ b/.github/workflows/e2e-sql.yml @@ -73,12 +73,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache-${{ github.sha }} @@ -89,7 +89,7 @@ jobs: run: ./mvnw -B clean install -am -pl test/e2e/sql -Pit.env.docker -DskipTests -Dspotless.apply.skip=true - name: Save E2E Image run: docker save -o /tmp/${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-proxy-test.tar apache/shardingsphere-proxy-test:latest - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: e2e-image path: /tmp/${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-proxy-test.tar @@ -132,18 +132,18 @@ jobs: mode: Standalone scenario: passthrough steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache-${{ github.sha }} - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - name: Download E2E Image if: matrix.adapter == 'proxy' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: e2e-image path: /tmp/ diff --git a/.github/workflows/graalvm.yml b/.github/workflows/graalvm.yml index d727764bc4917..1d769972ebd21 100644 --- a/.github/workflows/graalvm.yml +++ b/.github/workflows/graalvm.yml @@ -47,7 +47,7 @@ jobs: os: [ 'ubuntu-latest' ] java-version: [ '21.0.2' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1 with: java-version: ${{ matrix.java-version }} diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 933be7b0ec4f7..a7a25f57660f1 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -45,15 +45,15 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 @@ -80,14 +80,14 @@ jobs: packages: write timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ inputs.commit-id }} - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} @@ -95,13 +95,13 @@ jobs: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- - name: Login Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.HUB }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 - name: Push Docker Image run: ./mvnw -am -pl distribution/proxy -B -Prelease,docker.buildx.push -DskipTests -Dproxy.image.repository=${{ env.PROXY }} -Dproxy.image.tag=${{ github.sha }} clean install @@ -115,7 +115,7 @@ jobs: packages: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ inputs.commit-id }} - uses: graalvm/setup-graalvm@v1 @@ -123,14 +123,14 @@ jobs: java-version: '21.0.2' distribution: 'graalvm-community' github-token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} restore-keys: | ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache- ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- - - uses: docker/login-action@v2 + - uses: docker/login-action@v3 with: registry: ${{ env.HUB }} username: ${{ github.actor }} @@ -146,12 +146,12 @@ jobs: runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }} timeout-minutes: 15 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} @@ -205,12 +205,12 @@ jobs: - 2181:2181 options: --health-cmd="echo ruok | nc localhost 2181" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/nightly-check.yml b/.github/workflows/nightly-check.yml index 29a07dce5292f..a73d51c3080ae 100644 --- a/.github/workflows/nightly-check.yml +++ b/.github/workflows/nightly-check.yml @@ -37,8 +37,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} @@ -54,17 +54,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 25 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} @@ -84,17 +84,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 100 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} @@ -116,7 +116,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: sudo npm install -g markdown-link-check@3.10.0 - name: Check dead link run: | @@ -150,8 +150,8 @@ jobs: contents: read security-events: write steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 @@ -159,7 +159,7 @@ jobs: uses: github/codeql-action/init@v2 with: languages: java - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index f475dccfbf2ca..659d0a786a028 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -46,12 +46,12 @@ jobs: - name: Support Long Paths in Windows if: matrix.os == 'windows-latest' run: git config --global core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: ${{ matrix.java-version }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} @@ -78,12 +78,12 @@ jobs: - name: Support Long Paths in Windows if: matrix.os == 'windows-latest' run: git config --global core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} @@ -93,7 +93,7 @@ jobs: - name: Build prod with Maven run: ./mvnw clean install -DskipTests -B -ntp -T1C - name: Setup JDK 8 for Test - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 8 @@ -112,13 +112,13 @@ jobs: matrix: os: [ ubuntu-latest ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1 with: java-version: '21.0.2' distribution: 'graalvm-community' github-token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} diff --git a/.github/workflows/nightly-e2e-operation.yml b/.github/workflows/nightly-e2e-operation.yml index 9f0519d4c9b8e..aaae928e13530 100644 --- a/.github/workflows/nightly-e2e-operation.yml +++ b/.github/workflows/nightly-e2e-operation.yml @@ -53,9 +53,9 @@ jobs: timeout-minutes: 40 steps: - name: Checkout Project - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Retrieve Maven Caches - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache-${{ github.sha }} @@ -63,7 +63,7 @@ jobs: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-e2e-cache- ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party- - name: Setup JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 diff --git a/.github/workflows/nightly-sql-parser.yml b/.github/workflows/nightly-sql-parser.yml index 617f4c11f2b43..b341fe894f4b1 100644 --- a/.github/workflows/nightly-sql-parser.yml +++ b/.github/workflows/nightly-sql-parser.yml @@ -43,12 +43,12 @@ jobs: matrix: database: [ mysql, postgresql ] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 11 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-cache-${{ github.sha }} @@ -60,7 +60,7 @@ jobs: - name: Run SQL Parser continue-on-error: true run: ./mvnw -nsu -B install -f parser/sql/dialect/${{ matrix.database }}/pom.xml -Dsql.parser.external.it.enabled=true - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: sql-report path: /tmp/*.csv diff --git a/.github/workflows/required-check.yml b/.github/workflows/required-check.yml index 60d16a00234e9..7a3c5e33584d2 100644 --- a/.github/workflows/required-check.yml +++ b/.github/workflows/required-check.yml @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run CheckStyle run: ./mvnw checkstyle:check -Pcheck -T1C @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run Spotless run: ./mvnw spotless:check -Pcheck -T1C @@ -60,6 +60,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run Apache Rat run: ./mvnw apache-rat:check -Pcheck -T1C diff --git a/.github/workflows/required-reusable.yml b/.github/workflows/required-reusable.yml index a933eb7de3497..bdf1ab858793e 100644 --- a/.github/workflows/required-reusable.yml +++ b/.github/workflows/required-reusable.yml @@ -31,7 +31,7 @@ jobs: init-environment: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: sparse-checkout: | .github/workflows/resources/variables/ diff --git a/.github/workflows/schedule-report.yml b/.github/workflows/schedule-report.yml index c6dc2d10cddb5..63263b94c36fe 100644 --- a/.github/workflows/schedule-report.yml +++ b/.github/workflows/schedule-report.yml @@ -37,17 +37,17 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 40 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-maven-third-party-${{ hashFiles('**/pom.xml') }}