Skip to content

Commit

Permalink
fix: Enable annotations using golangci-lint(gh action) (opendatahub-i…
Browse files Browse the repository at this point in the history
…o#919)

* fix: Enable annotations using golangci-lint(gh action)

* update versions
  • Loading branch information
AjayJagan authored Mar 18, 2024
1 parent 301a09e commit 06256fc
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
uses: actions/setup-go@v5
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
uses: golangci/golangci-lint-action@v4
with:
version: v1.54.0
working-directory: ${{ env.REPOSITORY }}
args: --timeout 5m0s

0 comments on commit 06256fc

Please sign in to comment.