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 bb9a8d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ format:
check-format:
! gofmt -s -l . | read;

test:
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;

test: | validate-configuration-files
${TEST_SCRIPT}

test-cover:
Expand Down

0 comments on commit bb9a8d9

Please sign in to comment.