From 0c4cd7dc5129e5fc0cdd7b2ba6ab349cc0a72193 Mon Sep 17 00:00:00 2001 From: Bradley Kemp Date: Tue, 3 Sep 2019 22:42:09 +0100 Subject: [PATCH] Add CI check that go.mod is up to date (#56) * Add clean working dir test * Also run after integration tests * Run as separate step * Add to build_and_test --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a1f40b3..0a42824 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,6 +2,14 @@ version: 2.1 orbs: codecov: codecov/codecov@1.0.5 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 @@ -35,6 +43,7 @@ workflows: version: 2 build_and_test: jobs: + - check-dependencies - unit-tests - integration-tests release: