From f3ecd9ff9b57326589abc59ed491878bb1c0dd6d Mon Sep 17 00:00:00 2001 From: Cyro Dubeux Date: Thu, 2 Nov 2023 11:17:07 -0300 Subject: [PATCH] coveralls config updated --- .github/workflows/build.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f84e12..966b530 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,11 +22,12 @@ jobs: - name: Install dependencies run: | go mod download - - name: Run tests + - name: Run Unit tests run: | - go test -v -coverprofile=profile.cov ./... + go test -race -covermode atomic -coverprofile=covprofile ./... + - name: Install goveralls + run: go install github.com/mattn/goveralls@latest - name: Send coverage - uses: shogo82148/actions-goveralls@v1 - with: - path-to-profile: profile.cov - parallel: true + env: + COVERALLS_TOKEN: "::add-mask::${{ secrets.COVERALLS_TOKEN }}" + run: goveralls -coverprofile=covprofile -service=github