From 890ac404d7ed839c6797da5e256225bb61760eaf Mon Sep 17 00:00:00 2001 From: AJAY JAGANATHAN Date: Fri, 15 Mar 2024 15:39:26 +0530 Subject: [PATCH 1/2] fix: Enable annotations using golangci-lint(gh action) --- .github/workflows/linter.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 5113fa5999e..78252c5a32d 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -13,24 +13,14 @@ jobs: golangci: name: golangci-lint runs-on: ubuntu-latest - env: - REPOSITORY: go/src/github.com/${{ github.repository }} steps: - uses: actions/checkout@v4 - with: - path: ${{ env.REPOSITORY }} - name: Set up Go env uses: actions/setup-go@v4 with: - go-version-file: ${{ env.REPOSITORY }}/go.mod - - name: Set $GOPATH - run: | - echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV - echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH - shell: bash + go-version-file: go.mod - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: v1.54.0 - working-directory: ${{ env.REPOSITORY }} args: --timeout 5m0s From f18f748fe6adc12531ca6d6c572abf1c8d85b599 Mon Sep 17 00:00:00 2001 From: AJAY JAGANATHAN Date: Fri, 15 Mar 2024 17:37:41 +0530 Subject: [PATCH 2/2] update versions --- .github/workflows/linter.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 78252c5a32d..1d17d49ba11 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -16,11 +16,11 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Go env - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: version: v1.54.0 args: --timeout 5m0s