mirror of https://github.com/status-im/consul.git
check vendor folder (#6006)
* check vendor in circleci * make vendor checking step more descriptive * reorganize check-vendor and gofmt jobs
This commit is contained in:
parent
3c889b4e65
commit
54ef3d5a40
|
@ -60,6 +60,29 @@ jobs:
|
||||||
environment:
|
environment:
|
||||||
<<: *ENVIRONMENT
|
<<: *ENVIRONMENT
|
||||||
|
|
||||||
|
# checks vendor directory is correct
|
||||||
|
check-vendor:
|
||||||
|
docker:
|
||||||
|
- image: *GOLANG_IMAGE
|
||||||
|
environment:
|
||||||
|
<<: *ENVIRONMENT
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- consul-modcache-v1-{{ checksum "go.mod" }}
|
||||||
|
- run:
|
||||||
|
command: make update-vendor
|
||||||
|
- save_cache:
|
||||||
|
key: consul-modcache-v1-{{ checksum "go.mod" }}
|
||||||
|
paths:
|
||||||
|
- /go/pkg/mod
|
||||||
|
- run: |
|
||||||
|
if ! git diff --exit-code; then
|
||||||
|
echo "Git directory has vendor changes"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
go-test:
|
go-test:
|
||||||
docker:
|
docker:
|
||||||
- image: *GOLANG_IMAGE
|
- image: *GOLANG_IMAGE
|
||||||
|
@ -454,11 +477,13 @@ workflows:
|
||||||
version: 2
|
version: 2
|
||||||
go-tests:
|
go-tests:
|
||||||
jobs:
|
jobs:
|
||||||
|
- check-vendor
|
||||||
- lint-consul-retry
|
- lint-consul-retry
|
||||||
- go-fmt-and-vet
|
- go-fmt-and-vet:
|
||||||
|
requires:
|
||||||
|
- check-vendor
|
||||||
- dev-build:
|
- dev-build:
|
||||||
requires:
|
requires:
|
||||||
- lint-consul-retry
|
|
||||||
- go-fmt-and-vet
|
- go-fmt-and-vet
|
||||||
- go-test: &go-test
|
- go-test: &go-test
|
||||||
requires:
|
requires:
|
||||||
|
|
Loading…
Reference in New Issue