diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fbe480bfc143..d70f72d8cb0e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -28,6 +28,8 @@ env: jobs: unit-tests: name: Run unit tests + permissions: + contents: read runs-on: ${{ matrix.os }} strategy: matrix: @@ -55,7 +57,9 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - name: Run Go tests - run: go test ./... + run: go test -v -coverprofile=coverage.txt -covermode=atomic ./... + - name: Upload Coverage Report + uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 - name: Run Go tests w/ `-race` if: ${{ runner.os == 'Linux' }} run: go test -race ./...