mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-12-03 12:23:02 +00:00
CI: Enabled race detector in tests
This commit is contained in:
parent
2afcd1bc87
commit
a4a9a24424
|
@ -30,7 +30,7 @@
|
||||||
"variables": [ "$BOT_TOKEN" ]
|
"variables": [ "$BOT_TOKEN" ]
|
||||||
},
|
},
|
||||||
"script": [
|
"script": [
|
||||||
"go test -v -coverprofile $COV ./...",
|
"go test -coverprofile -race -v $COV ./...",
|
||||||
"go tool cover -func $COV"
|
"go tool cover -func $COV"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
"script": [
|
"script": [
|
||||||
"go get ./...",
|
"go get ./...",
|
||||||
# Test this package along with dismock.
|
# Test this package along with dismock.
|
||||||
"go test -coverpkg $tested -coverprofile $COV -tags integration -v ./... $dismock",
|
"go test -coverpkg $tested -coverprofile $COV -tags integration -race -v ./... $dismock",
|
||||||
"go tool cover -func $COV"
|
"go tool cover -func $COV"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue