diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 9890b82f5f..5be9d158ff 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -21,7 +21,7 @@ jobs: working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} @@ -41,14 +41,14 @@ jobs: env: working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} steps: - - name: Set up Go 1.21 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.21.x + go-version-file: 'go.mod' id: go - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} diff --git a/.github/workflows/integrate-cluster-cmd.yaml b/.github/workflows/integrate-cluster-cmd.yaml index b48710b7ba..073323fba4 100644 --- a/.github/workflows/integrate-cluster-cmd.yaml +++ b/.github/workflows/integrate-cluster-cmd.yaml @@ -42,13 +42,13 @@ jobs: - 'test_tikv_cdc' steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Go 1.24 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.24.x + go-version-file: 'go.mod' id: go - name: Build build_integration_test run: | @@ -99,7 +99,7 @@ jobs: - name: Upload component log if: ${{ failure() }} # if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: overwrite: true name: component_logs diff --git a/.github/workflows/integrate-cluster-scale.yaml b/.github/workflows/integrate-cluster-scale.yaml index 95c414cb69..eb07f7ed2d 100644 --- a/.github/workflows/integrate-cluster-scale.yaml +++ b/.github/workflows/integrate-cluster-scale.yaml @@ -42,13 +42,13 @@ jobs: - 'test_scale_tiproxy' steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Go 1.24 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.24.x + go-version-file: 'go.mod' id: go - name: Build build_integration_test @@ -100,7 +100,7 @@ jobs: - name: Upload component log if: ${{ failure() }} # if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: overwrite: true name: cluster_logs diff --git a/.github/workflows/integrate-dm.yaml b/.github/workflows/integrate-dm.yaml index d0c5d58e5b..3616dafbdc 100644 --- a/.github/workflows/integrate-dm.yaml +++ b/.github/workflows/integrate-dm.yaml @@ -41,7 +41,7 @@ jobs: - '--native-ssh --do-cases test_upgrade' steps: - name: Check out code into the Go module directory - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} @@ -95,7 +95,7 @@ jobs: - name: Upload component log if: ${{ failure() }} # if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: overwrite: true name: dm_logs diff --git a/.github/workflows/integrate-playground-ng.yaml b/.github/workflows/integrate-playground-ng.yaml index 2d53233d2e..dfc52f036c 100644 --- a/.github/workflows/integrate-playground-ng.yaml +++ b/.github/workflows/integrate-playground-ng.yaml @@ -36,13 +36,13 @@ jobs: timeout-minutes: 10 steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Go 1.24 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.24.x + go-version-file: 'go.mod' id: go - name: Build build_tiup_playground_test @@ -66,7 +66,7 @@ jobs: - name: Upload component log if: ${{ failure() }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: overwrite: true name: playground_logs diff --git a/.github/workflows/integrate-playground.yaml b/.github/workflows/integrate-playground.yaml index cada7e28b6..9cf7a6b368 100644 --- a/.github/workflows/integrate-playground.yaml +++ b/.github/workflows/integrate-playground.yaml @@ -41,13 +41,13 @@ jobs: - "test_playground" steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Go 1.24 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.24.x + go-version-file: 'go.mod' id: go - name: Build build_tiup_playground_test @@ -71,7 +71,7 @@ jobs: - name: Upload component log if: ${{ failure() }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: overwrite: true name: playground_logs diff --git a/.github/workflows/integrate-tiup.yaml b/.github/workflows/integrate-tiup.yaml index 29a0d3c2ee..f72cae21b3 100644 --- a/.github/workflows/integrate-tiup.yaml +++ b/.github/workflows/integrate-tiup.yaml @@ -45,13 +45,13 @@ jobs: - "test_tiup" steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Go 1.24 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.24.x + go-version-file: 'go.mod' id: go @@ -80,13 +80,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Go 1.24 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.24.x + go-version-file: 'go.mod' id: go - name: make unit-test diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b0d1370800..724a65bea6 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -11,7 +11,7 @@ jobs: working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} diff --git a/.github/workflows/release-tiup.yaml b/.github/workflows/release-tiup.yaml index 66a8acaf13..bd92f1b179 100644 --- a/.github/workflows/release-tiup.yaml +++ b/.github/workflows/release-tiup.yaml @@ -44,14 +44,14 @@ jobs: env: working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }} steps: - - name: Set up Go 1.21 - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: 1.21.x + go-version-file: 'go.mod' id: go - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.inputs.git-ref || github.event.pull_request.head.sha }} path: go/src/github.com/${{ github.repository }} @@ -202,7 +202,7 @@ jobs: needs: release steps: - name: Check out brew code - uses: actions/checkout@v3 + uses: actions/checkout@v6 continue-on-error: true if: github.event_name == 'release' with: diff --git a/.github/workflows/reprotest.yaml b/.github/workflows/reprotest.yaml index 575c0cd7ca..a7f358b9ff 100644 --- a/.github/workflows/reprotest.yaml +++ b/.github/workflows/reprotest.yaml @@ -33,19 +33,14 @@ jobs: # The type of runner that the job will run on runs-on: ubuntu-22.04 - strategy: - matrix: - go: - - 1.21.x - # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 - - name: Set up Go ${{ matrix.go }} - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v6 with: - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' - name: Install reprotest and prepare id: prepare_env