Merge pull request #60 from blocklayerhq/data-race-detector

ci: enable data race detector
This commit is contained in:
Andrea Luzzardi 2021-01-20 19:04:22 -08:00 committed by GitHub
commit 31ffe23885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,13 @@ generate:
dagger: generate
go build -o ./cmd/dagger/ ./cmd/dagger/
.PHONY: dagger
dagger-debug: generate
go build -race -o ./cmd/dagger/dagger-debug ./cmd/dagger/
.PHONY: test
test:
go test -v ./...
go test -race -v ./...
.PHONY: cuefmt
cuefmt:
@ -24,8 +28,8 @@ lint: generate cuefmt
@test -z "$$(git status -s . | grep -e "^ M" | grep gen.go | cut -d ' ' -f3 | tee /dev/stderr)"
.PHONY: integration
integration: dagger
integration: dagger-debug
# Self-diagnostics
./examples/tests/test-test.sh 2>/dev/null
# Actual integration tests
./examples/tests/test.sh all
DAGGER_BINARY="./cmd/dagger/dagger-debug" time ./examples/tests/test.sh all