mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
Upgrades the AWS SDK to v2. AWS S3 bucket urls will now error if they are not prefixed with a schema (example: https://).
14 lines
443 B
PowerShell
Executable File
14 lines
443 B
PowerShell
Executable File
# Run the unit tests with the race detector and code coverage enabled
|
|
|
|
if (!(Test-Path env:GO_ENV)) {$env:GO_ENV = "test"}
|
|
|
|
if (!(Test-Path env:ATHENS_MINIO_ENDPOINT)) {
|
|
$env:ATHENS_MINIO_ENDPOINT = "http://127.0.0.1:9001"
|
|
}
|
|
|
|
if (!(Test-Path env:ATHENS_MONGO_STORAGE_URL)) {
|
|
$env:ATHENS_MONGO_STORAGE_URL = "mongodb://127.0.0.1:27017"
|
|
}
|
|
$env:GO111MODULE="on"
|
|
& go test -mod=vendor -race -coverprofile cover.out -covermode atomic ./...
|