test: don't run tests twice

This commit is contained in:
Jannis Mattheis
2023-09-16 20:44:09 +02:00
parent e0f86b6ba1
commit a2b2f856e0
4 changed files with 3 additions and 13 deletions

View File

@@ -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"
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-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 [ -z ${VERSION} ]; then echo "Need to set VERSION" && exit 1; fi;
test-race:
go test -race ./...
test-coverage:
go test -coverprofile=coverage.txt -covermode=atomic ./...
go test --race -coverprofile=coverage.txt -covermode=atomic ./...
format:
goimports -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")

View File

@@ -1,6 +1,3 @@
//go:build !race
// +build !race
package auth
import (

View File

@@ -1,6 +1,3 @@
//go:build !race
// +build !race
package password
import (

View File

@@ -1,6 +1,5 @@
//go:build (linux || darwin) && !race
//go:build linux || darwin
// +build linux darwin
// +build !race
package plugin