Refactor: use gotestsum for CircleCI (#377)

This commit is contained in:
Hidetake Iwata
2020-10-25 12:47:32 +09:00
committed by GitHub
parent b701a6f0aa
commit 8a392ba25a
3 changed files with 5 additions and 10 deletions

View File

@@ -10,15 +10,15 @@ jobs:
keys:
- go-sum-{{ checksum "go.sum" }}
- run: make -C .circleci install-test-deps
- run: make check
- run: bash <(curl -s https://codecov.io/bash)
- run: make dist
- run: mkdir -p /tmp/gotest
- run: gotestsum --junitfile /tmp/gotest/gotest.xml -- -v -race -cover -coverprofile=coverage.out ./...
- store_test_results:
path: /tmp/gotest
- save_cache:
key: go-sum-{{ checksum "go.sum" }}
paths:
- ~/go/pkg
- store_artifacts:
path: gotest.log
- run: bash <(curl -s https://codecov.io/bash)
release:
macos:

1
.gitignore vendored
View File

@@ -4,7 +4,6 @@
/dist/output
/coverage.out
/gotest.log
/kubelogin
/kubectl-oidc_login

View File

@@ -13,10 +13,6 @@ all: $(TARGET)
$(TARGET): $(wildcard **/*.go)
go build -o $@ -ldflags "$(LDFLAGS)"
.PHONY: check
check:
go test -v -race -cover -coverprofile=coverage.out ./... > gotest.log
.PHONY: dist
dist: dist/output
dist/output: