From 4d4e6b57b2b9419cbb0058e9073550a632e50039 Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Sun, 15 Feb 2026 21:46:41 +0000 Subject: [PATCH] chore(ci): add race detector and coverage reporting to PR workflow Enable -race flag and coverage profiling in CI test step. Add coverage summary output. Update .gitignore for IDE dirs. --- .github/workflows/pr.yml | 7 +++++-- .gitignore | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 35ad87ac5..e0ea2d281 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -47,6 +47,9 @@ jobs: with: go-version-file: go.mod - - name: Run go test - run: go test ./... + - name: Run go test with race detector + run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... + - name: Print coverage summary + if: always() + run: go tool cover -func=coverage.txt | tail -1 diff --git a/.gitignore b/.gitignore index 6ba411758..7384e7f5c 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,8 @@ coverage.html # Ralph workspace ralph/ .ralph/ -tasks/ \ No newline at end of file +tasks/ + +# IDE +.vscode/ +.cursor/ \ No newline at end of file