diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 467ef13..b563e19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,11 @@ jobs: run: cd web-ui/backend && go vet ./... - name: Test - run: cd web-ui/backend && go test ./... + # -race because the alerter and agent paths are deliberately + # concurrent and their regression tests pin interleavings; + # -count=1 because the restored build cache would otherwise + # replay cached passes instead of running anything. + run: cd web-ui/backend && go test -race -count=1 ./... - name: Build run: cd web-ui/backend && go build ./cmd/sysmon-web