Skip to content

chore: add Datadog Code Coverage upload, remove CodeCov #120

chore: add Datadog Code Coverage upload, remove CodeCov

chore: add Datadog Code Coverage upload, remove CodeCov #120

Workflow file for this run

name: coverage
on: [push, pull_request]
permissions:
contents: read
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Install checkout
uses: actions/checkout@v4
- name: Install checkout
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Run coverage
run: go test -coverprofile=coverage.out -coverpkg=./... ./...
- name: Run coverage with new pickfirst
run: GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST=true go test -coverprofile=coverage_new_pickfirst.out -coverpkg=./... ./...
- name: Upload coverage to Datadog
continue-on-error: true
env:
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
DD_SERVICE: grpc-go
run: npx --yes @datadog/datadog-ci coverage upload coverage.out