diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 91be1f9..ea090b4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,11 +3,7 @@ name: Go Svg Captcha CI -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] +on: [push, pull_request] jobs: build: @@ -28,7 +24,7 @@ jobs: run: go build -v ./... - name: Test - run: go test -v ./... + run: go test -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3