test: don't run tests twice
This commit is contained in:
parent
e0f86b6ba1
commit
a2b2f856e0
7
Makefile
7
Makefile
|
|
@ -9,7 +9,7 @@ DOCKER_RUN=docker run --rm -v "$$PWD/.:${DOCKER_WORKDIR}" -v "`go env GOPATH`/pk
|
||||||
DOCKER_GO_BUILD=go build -mod=readonly -a -installsuffix cgo -ldflags "$$LD_FLAGS"
|
DOCKER_GO_BUILD=go build -mod=readonly -a -installsuffix cgo -ldflags "$$LD_FLAGS"
|
||||||
NODE_OPTIONS=$(shell if node --help | grep -q -- "--openssl-legacy-provider"; then echo --openssl-legacy-provider; fi)
|
NODE_OPTIONS=$(shell if node --help | grep -q -- "--openssl-legacy-provider"; then echo --openssl-legacy-provider; fi)
|
||||||
|
|
||||||
test: test-coverage test-race test-js
|
test: test-coverage test-js
|
||||||
check: check-go check-swagger check-js
|
check: check-go check-swagger check-js
|
||||||
check-ci: check-swagger check-js
|
check-ci: check-swagger check-js
|
||||||
|
|
||||||
|
|
@ -17,11 +17,8 @@ require-version:
|
||||||
if [ -n ${VERSION} ] && [[ $$VERSION == "v"* ]]; then echo "The version may not start with v" && exit 1; fi
|
if [ -n ${VERSION} ] && [[ $$VERSION == "v"* ]]; then echo "The version may not start with v" && exit 1; fi
|
||||||
if [ -z ${VERSION} ]; then echo "Need to set VERSION" && exit 1; fi;
|
if [ -z ${VERSION} ]; then echo "Need to set VERSION" && exit 1; fi;
|
||||||
|
|
||||||
test-race:
|
|
||||||
go test -race ./...
|
|
||||||
|
|
||||||
test-coverage:
|
test-coverage:
|
||||||
go test -coverprofile=coverage.txt -covermode=atomic ./...
|
go test --race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
|
||||||
format:
|
format:
|
||||||
goimports -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
|
goimports -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
//go:build !race
|
|
||||||
// +build !race
|
|
||||||
|
|
||||||
package auth
|
package auth
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
//go:build !race
|
|
||||||
// +build !race
|
|
||||||
|
|
||||||
package password
|
package password
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
//go:build (linux || darwin) && !race
|
//go:build linux || darwin
|
||||||
// +build linux darwin
|
// +build linux darwin
|
||||||
// +build !race
|
|
||||||
|
|
||||||
package plugin
|
package plugin
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue