From 815692e929a4cfa40de5a4336bcbc8d87a39c2e9 Mon Sep 17 00:00:00 2001 From: baerwang Date: Thu, 26 Sep 2024 14:39:28 +0800 Subject: [PATCH 1/3] bump: upgrade actions version --- .github/workflows/changelog.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/docker-image.yml | 2 +- .github/workflows/go-integration.yml | 4 ++-- .github/workflows/go.yml | 4 ++-- .github/workflows/licence-checker.yml | 2 +- .github/workflows/linelint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/reviewdog.yml | 6 +++--- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 7ca76c09..839e3571 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -28,7 +28,7 @@ jobs: name: auto generate changelog steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7c4c31bf..e69c7916 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2591cc7f..29aa2236 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Docker meta id: meta uses: docker/metadata-action@v3 diff --git a/.github/workflows/go-integration.yml b/.github/workflows/go-integration.yml index 93f82b4e..66f15e07 100644 --- a/.github/workflows/go-integration.yml +++ b/.github/workflows/go-integration.yml @@ -40,8 +40,8 @@ jobs: os: - ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go_version }} - run: go version diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6bdabf4d..da2692f8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -40,8 +40,8 @@ jobs: os: - ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go_version }} - run: go version diff --git a/.github/workflows/licence-checker.yml b/.github/workflows/licence-checker.yml index 950a799b..941f6572 100644 --- a/.github/workflows/licence-checker.yml +++ b/.github/workflows/licence-checker.yml @@ -31,7 +31,7 @@ jobs: check-license: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Check License Header uses: apache/skywalking-eyes@main diff --git a/.github/workflows/linelint.yml b/.github/workflows/linelint.yml index eb467efd..6092be9a 100644 --- a/.github/workflows/linelint.yml +++ b/.github/workflows/linelint.yml @@ -26,6 +26,6 @@ jobs: name: Check if all files end in newline steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Linelint uses: fernandrone/linelint@0.0.4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 376d2269..c111e50e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: goos: windows steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: wangyoucao577/go-release-action@v1.20 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index a426723b..cb855d25 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: reviewdog/action-golangci-lint@v2 with: @@ -48,9 +48,9 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: "1.20" From c86c4e72ca08f717fa4aa780a138b2d30db7c6af Mon Sep 17 00:00:00 2001 From: baerwang Date: Thu, 26 Sep 2024 17:44:08 +0800 Subject: [PATCH 2/3] bump: actions cache version upgrade --- .github/workflows/go-integration.yml | 2 +- .github/workflows/go.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-integration.yml b/.github/workflows/go-integration.yml index 66f15e07..8dd8f164 100644 --- a/.github/workflows/go-integration.yml +++ b/.github/workflows/go-integration.yml @@ -45,7 +45,7 @@ jobs: with: go-version: ${{ matrix.go_version }} - run: go version - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/go-build diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index da2692f8..84025671 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -45,7 +45,7 @@ jobs: with: go-version: ${{ matrix.go_version }} - run: go version - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/go-build From b49bea47dc91d2faed48c11b2b8f1b81de2ffeed Mon Sep 17 00:00:00 2001 From: baerwang Date: Sun, 29 Sep 2024 23:40:41 +0800 Subject: [PATCH 3/3] fix: According to review dog changed code --- pkg/runtime/ast/ast_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/runtime/ast/ast_test.go b/pkg/runtime/ast/ast_test.go index 1827f299..db55e63c 100644 --- a/pkg/runtime/ast/ast_test.go +++ b/pkg/runtime/ast/ast_test.go @@ -400,7 +400,6 @@ func TestQuote(t *testing.T) { sel := stmt.(*SelectStatement) var sb strings.Builder _ = sel.Restore(RestoreDefault, &sb, nil) - t.Log(sb.String()) assert.Equal(t, "SELECT `a``bc`", sb.String()) }