Skip to content

Commit

Permalink
CI: make sure it is tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwebs committed Nov 28, 2018
1 parent 2f6639d commit 69d43b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ before_install:
- bash gitcookie.sh
script:
- make dev
- ./hack/check-tidy.sh
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ jobs:
- run:
name: "Build & Test"
command: make dev
- run:
name: "Go mod tidy"
command: ./hack/check-tidy.sh
5 changes: 5 additions & 0 deletions hack/check-tidy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail

GO111MODULE=on go mod tidy
git diff --quiet

0 comments on commit 69d43b0

Please sign in to comment.