Skip to content

Commit

Permalink
Run golangci-lint against master
Browse files Browse the repository at this point in the history
The previous dynamic approaches were unreliable after all... It needs a
more sophisticated script, but this is fine for now.
  • Loading branch information
Ivan Mirić authored and imiric committed Apr 27, 2020
1 parent 94115f4 commit 70a5867
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ jobs:
name: Run golangci-lint
command: |
export PATH="$GOPATH/bin:$PATH"
basecommit=$(git log --decorate | grep '^commit.*origin/' | sed -n 2p | cut -d' ' -f2)
echo "basecommit=$basecommit"
golangci-lint run --out-format=tab --new-from-rev "$basecommit" ./...
golangci-lint run --out-format=tab --new-from-rev origin/master ./...
test:
Expand Down

0 comments on commit 70a5867

Please sign in to comment.