Use the race detector when running automated tests.

This commit is contained in:
Gabe Kangas 2022-07-19 21:09:45 -07:00 committed by GitHub
parent fb2cad86f8
commit aead748c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -38,5 +38,5 @@ jobs:
go-version: "^1"
- name: Run tests
run: go test ./...
run: go test -race ./...

View File

@ -18,7 +18,7 @@ fi
pushd ../../.. > /dev/null
# Build and run owncast from source
go build -o owncast main.go
go build -race -o owncast main.go
./owncast -database $TEMP_DB &
SERVER_PID=$!