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