Skip to content

Commit

Permalink
Validate configuration files in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Aug 25, 2020
1 parent 518c9eb commit 6d4ebbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
steps:
- *fast-checkout
- run: make test
- run: make validate-configuration-files
lint:
executor:
name: default
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6d4ebbb

Please sign in to comment.