google.golang.org/grpc@v1.72.2/.github/workflows/coverage.yml (about)

     1  name: codecov
     2  on: [push, pull_request]
     3  
     4  permissions:
     5    contents: read
     6  
     7  jobs:
     8    upload:
     9      runs-on: ubuntu-latest
    10      steps:
    11        - name: Install checkout
    12          uses: actions/checkout@v4
    13  
    14        - name: Install checkout
    15          uses: actions/setup-go@v5
    16          with:
    17            go-version: "stable"
    18  
    19        - name: Run coverage
    20          run: go test -coverprofile=coverage.out -coverpkg=./... ./...
    21  
    22        - name: Run coverage with old pickfirst
    23          run: GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST=false go test -coverprofile=coverage_old_pickfirst.out -coverpkg=./... ./...
    24  
    25        - name: Upload coverage to Codecov
    26          uses: codecov/codecov-action@v4
    27          with:
    28            token: ${{ secrets.CODECOV_TOKEN }}
    29            fail_ci_if_error: true