From 6d4ebbb7b9943c8da1b5e71b76e5770f05bb05f4 Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Tue, 25 Aug 2020 14:03:44 -0700 Subject: [PATCH] Validate configuration files in tests --- .circleci/config.yml | 1 + Makefile | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 79097af3..9d1734ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,6 +45,7 @@ jobs: steps: - *fast-checkout - run: make test + - run: make validate-configuration-files lint: executor: name: default diff --git a/Makefile b/Makefile index bab383f5..3f84041b 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,14 @@ build: install: go install ./... +validate-configuration-files: + go run main.go configuration:validate examples/configuration/bitcoin.json; + go run main.go configuration:validate examples/configuration/ethereum.json; + go run main.go configuration:validate examples/configuration/simple.json; + go run main.go configuration:create examples/configuration/default.json; + go run main.go configuration:validate examples/configuration/default.json; + git diff --exit-code; + mocks: rm -rf mocks; mockery --dir pkg/constructor --all --case underscore --outpkg constructor --output mocks/constructor;