Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/datadog-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:

coverage:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
Comment thread
chouetz marked this conversation as resolved.
steps:
- name: Setup go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c
Expand All @@ -73,10 +76,15 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Run tests with coverage
run: go test -coverprofile=coverage.out -covermode=atomic ./statsd/...
- name: Get Datadog credentials
id: dd-sts
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 # v1.0.0
with:
policy: datadog-go-coverage-upload
- name: Upload coverage to Datadog
uses: datadog/coverage-upload-github-action@d9548b1c3c4ab639d5d3ab29a1508af188975f77
with:
api_key: ${{ secrets.DD_API_KEY }}
api_key: ${{ steps.dd-sts.outputs.api_key }}
site: datadoghq.com

go_12_test:
Expand Down
Loading