From 964a16c2f0df756d4635011ad75038b9458415f9 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 24 Jun 2023 14:24:11 +0700 Subject: [PATCH 1/6] tst --- .github/workflows/golang-lint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml index 62f5dc7ce..a0fd7cfc4 100644 --- a/.github/workflows/golang-lint.yml +++ b/.github/workflows/golang-lint.yml @@ -23,4 +23,7 @@ jobs: # Require: The version of golangci-lint to use. # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. - version: v1.53 + version: latest + # skip cache because of flaky behaviors + skip-build-cache: true + skip-pkg-cache: true From 84c35439753abc1fb9cfce9c1487dde797797433 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 24 Jun 2023 15:41:18 +0700 Subject: [PATCH 2/6] only new --- .github/workflows/golang-lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml index a0fd7cfc4..ad6a148dc 100644 --- a/.github/workflows/golang-lint.yml +++ b/.github/workflows/golang-lint.yml @@ -5,7 +5,7 @@ on: permissions: contents: read # Optional: allow read access to pull request. Use with `only-new-issues` option. - # pull-requests: read + pull-requests: read jobs: golangci: @@ -24,6 +24,7 @@ jobs: # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. version: latest + only-new-issues: true # skip cache because of flaky behaviors skip-build-cache: true skip-pkg-cache: true From cc63a7a9e1e8c6d4b608c6ca9be873d12c09b7d9 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 24 Jun 2023 15:43:19 +0700 Subject: [PATCH 3/6] adding new edit --- internal/osutil/file_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/osutil/file_test.go b/internal/osutil/file_test.go index 57441ced9..973958b6d 100644 --- a/internal/osutil/file_test.go +++ b/internal/osutil/file_test.go @@ -19,6 +19,8 @@ func validFileContent(t *testing.T, filename string, content []byte) { } } +// Testing - simulate bugs + func TestWriteFile(t *testing.T) { t.Run("write file", func(t *testing.T) { tempDir := t.TempDir() From 0581c30ecdfcc7426aca1c608b4c060a8e736f08 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 24 Jun 2023 15:45:16 +0700 Subject: [PATCH 4/6] adding new edit.v1 --- internal/osutil/file_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/osutil/file_test.go b/internal/osutil/file_test.go index 973958b6d..2589530c5 100644 --- a/internal/osutil/file_test.go +++ b/internal/osutil/file_test.go @@ -2,7 +2,7 @@ package osutil import ( "bytes" - "io/ioutil" + "io/ioutil" //check this "os" "path/filepath" "runtime" From cc80376eb1b4e2c0f09178c6f342c405e38d7f2b Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 24 Jun 2023 15:48:13 +0700 Subject: [PATCH 5/6] using cache --- .github/workflows/golang-lint.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml index ad6a148dc..04b1f571d 100644 --- a/.github/workflows/golang-lint.yml +++ b/.github/workflows/golang-lint.yml @@ -25,6 +25,3 @@ jobs: # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. version: latest only-new-issues: true - # skip cache because of flaky behaviors - skip-build-cache: true - skip-pkg-cache: true From f4e9a3f58d49f89098198f6688f89e209ba0c60c Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 24 Jun 2023 15:50:15 +0700 Subject: [PATCH 6/6] adding WF dispatch --- .github/workflows/golang-lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/golang-lint.yml b/.github/workflows/golang-lint.yml index 04b1f571d..c0568e24e 100644 --- a/.github/workflows/golang-lint.yml +++ b/.github/workflows/golang-lint.yml @@ -1,6 +1,7 @@ name: golangci-lint on: pull_request: + workflow_dispatch: permissions: contents: read