CI: add race detector
This commit is contained in:
parent
8d84965386
commit
02695f44bd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue