Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Add CI check to ensure module definition is correct #198

Merged
merged 13 commits into from
Nov 29, 2019
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ steps:
env
displayName: Print Go version and environment

- bash: |
go mod tidy
diff -u <(echo -n) <(git diff go.mod)
diff -u <(echo -n) <(git diff go.sum)
workingDirectory: '$(modulePath)'
displayName: Ensure that module definition and checksums are correct

- script: |
go get -v -t -d ./...
golangci-lint run -E gofmt -E goimports -E misspell
Expand Down