CI: add race detector

This commit is contained in:
kayos@tcp.direct 2023-01-18 16:16:05 -08:00
parent 8d84965386
commit 02695f44bd
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

View File

@ -1,4 +1,4 @@
name: Build Status
name: Test
on: [push, pull_request]
@ -13,6 +13,6 @@ jobs:
with:
go-version: '1.18'
- name: Run coverage
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
run: go test -race -v -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)