diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d0ead6..48b2aa4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,5 +25,10 @@ jobs: - name: Build run: go build -v ./... - - name: Test - run: go test -v ./... + - name: Test with coverage + run: go test -race -coverprofile=coverage.txt -covermode=atomic + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}