Skip to content

Commit

Permalink
Set golangci-lint config path in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Aug 6, 2022
1 parent 5a46af5 commit c54abf9
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ workflows:
echo 'export PATH="$PATH:/c/Program Files/Go/bin"' > $BASH_ENV
- run: go version

- go/lint:
golangci-lint-version: 1.48.0

- lint
- build
- run

Expand Down Expand Up @@ -130,6 +128,26 @@ jobs:
go build -o dist/gotestsum .
- run: dist/gotestsum

lint:
executor:
name: go/golang
tag: 1.19-alpine
steps:
- checkout
- run: go mod download
- run:
name: Install golangci-lint
command: |
mkdir -p /go/bin
download=https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
wget -O- -q "$download" | sh -s -- -b /go/bin/ v1.48.0
- run:
name: Lint
command: |
golangci-lint run -v --concurrency 2 --config .project/golangci-lint.yml
update-windows-golden:
executor: windows
steps:
Expand Down

0 comments on commit c54abf9

Please sign in to comment.