Actions: Report to CodeCov (#101499)

* feat: report to codecov

* fix: use webhook domain

* chore: force coverage check

* fix: use token

* fix: pass in token from workflow

* feat: remove codecov coverage force
This commit is contained in:
Mariell Hoversholm
2025-03-06 09:43:47 -07:00
committed by GitHub
parent a93a05aebd
commit 3247105d6a
2 changed files with 20 additions and 5 deletions
+15 -1
View File
@@ -8,6 +8,9 @@ inputs:
integration-cov-path:
description: 'Path to integration test coverage file'
required: true
codecov-token:
description: 'Token for CodeCov'
required: true
runs:
using: "composite"
@@ -43,4 +46,15 @@ runs:
echo '# Coverage' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
grep 'total:' backend-funcs.log | tr '\t' ' ' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Report coverage to CodeCov
uses: codecov/codecov-action@v5
with:
files: backend.cov
flags: unified-backend
name: backend
slug: grafana/grafana
# This URL doesn't use the Google auth, but is much more locked down. As such, it requires OIDC or a CodeCov-provided token to do anything.
url: https://codecov-webhook.grafana-dev.net
token: ${{ inputs.codecov-token }}