Skip to content

Commit

Permalink
Add CI check that go.mod is up to date (#56)
Browse files Browse the repository at this point in the history
* Add clean working dir test

* Also run after integration tests

* Run as separate step

* Add to build_and_test
  • Loading branch information
bradleyjkemp authored Sep 3, 2019
1 parent ce76b7c commit 0c4cd7d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ version: 2.1
orbs:
codecov: codecov/[email protected]
jobs:
check-dependencies:
docker:
- image: circleci/golang:1.12
steps:
- checkout
- run: go mod verify
- run: git diff --quiet && echo "Working directory clean" || (echo "Working directory not clean"; exit 1)

unit-tests:
docker:
- image: circleci/golang:1.12
Expand Down Expand Up @@ -35,6 +43,7 @@ workflows:
version: 2
build_and_test:
jobs:
- check-dependencies
- unit-tests
- integration-tests
release:
Expand Down

0 comments on commit 0c4cd7d

Please sign in to comment.