From 9e1f61d49650d78be5418534275730322042baeb Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Sat, 24 Jun 2023 16:04:54 +0700 Subject: [PATCH 1/2] feat: introduce golang ci lint action Signed-off-by: Tung Bui --- .github/workflows/go-lint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/go-lint.yml diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml new file mode 100644 index 000000000..bc81f1741 --- /dev/null +++ b/.github/workflows/go-lint.yml @@ -0,0 +1,25 @@ +name: golangci-lint +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.20' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + only-new-issues: true From 79beaf2ccfabdf29b0cd7bf11c47ab6e5b078287 Mon Sep 17 00:00:00 2001 From: "Tung Bui Quang (Leo)" Date: Wed, 28 Jun 2023 21:55:48 +0700 Subject: [PATCH 2/2] feat: introduce golang ci lint action - v1.code.review Signed-off-by: Tung Bui Quang (Leo) --- .github/workflows/go-lint.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index bc81f1741..4ff40998e 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -17,9 +17,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.20' - cache: false + cache: true - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: latest - only-new-issues: true