Skip to content

Commit

Permalink
circleci: new workflow with more insight on unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Jul 14, 2020
1 parent f421730 commit 133cde3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ jobs:
- image: circleci/golang:latest
steps:
- checkout
- run: mkdir -p /tmp/test-results
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
Expand All @@ -13,7 +14,9 @@ jobs:
- run: go test -v ./cmd/ -run=VersionIsGenerated # ensure version is generated
- run: go get golang.org/x/tools/cmd/goimports
- run: go generate ./...
- run: go test -v -short -tags debug ./...
- run: gotestsum --junitfile /tmp/test-results/results.xml -- ./... -short -v -tags debug
- store_test_results:
path: /tmp/test-results
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
Expand Down

0 comments on commit 133cde3

Please sign in to comment.