From 890ac404d7ed839c6797da5e256225bb61760eaf Mon Sep 17 00:00:00 2001 From: AJAY JAGANATHAN Date: Fri, 15 Mar 2024 15:39:26 +0530 Subject: [PATCH] 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