Skip to content

Commit

Permalink
chore(gh): configures linter to reference go.mod for Go version (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak authored Nov 2, 2023
1 parent dcc6b91 commit 95112ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
name: golangci-lint
runs-on: ubuntu-latest
env:
REPOSITORY: ${{ github.repository }}
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: 1.18
- uses: actions/checkout@v4
with:
path: go/src/github.com/${{ env.REPOSITORY }}
go-version-file: ${{ env.REPOSITORY }}/go.mod
- name: Set $GOPATH
run: |
echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV
Expand All @@ -28,5 +28,5 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.0
working-directory: go/src/github.com/${{ env.REPOSITORY }}
working-directory: ${{ env.REPOSITORY }}
args: --timeout 5m0s

0 comments on commit 95112ac

Please sign in to comment.