File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,16 @@ matrix:
1212 - go : master
1313
1414env :
15- - GO111MODULE=on
15+ global :
16+ - GO111MODULE=on
17+ - REVIEWDOG_REPORTER=github-check
1618
1719before_install :
1820 # install 7zip for decompressing test demos
1921 - sudo apt-get install -y p7zip-full
22+ # install reviewdog for linting
23+ - mkdir -p ~/bin/ && export PATH="~/bin/:$PATH"
24+ - curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ~/bin
2025
2126# Override Travis's default 'go get' step, since we use Go modules
2227install :
@@ -31,7 +36,7 @@ before_script:
3136 - git fetch
3237
3338 # Install golangci-lint
34- - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.17.1
39+ - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.24.0
3540
3641script :
3742 # Compile
Original file line number Diff line number Diff line change 1414
1515echo " Linting changes between/since $base_rev "
1616
17- golangci-lint run --new-from-rev $base_rev
17+ golangci-lint run --new-from-rev $base_rev | reviewdog -f=golangci-lint -diff= " git diff $base_rev " -reporter= " ${REVIEWDOG_REPORTER :- local} "
You can’t perform that action at this time.
0 commit comments