diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ea23150..942491b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,10 +27,10 @@ jobs: go-version: ${{ matrix.go-version }} cache: true - name: Test - run: go test -race -vet=off -coverprofile unit.txt -covermode atomic ./... + run: go test -coverpkg=./internal/... -race -vet=off -count=1 -coverprofile unit.txt -covermode atomic ./... - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: file: ./unit.txt flags: unit,${{ matrix.os }},go-${{ matrix.go-version }} - name: unit \ No newline at end of file + name: unit