ci: use codecov to upload coverage report (#1583)
This commit is contained in:
parent
5a58426859
commit
8cc1ee6360
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -45,17 +45,15 @@ jobs:
|
|||||||
|
|
||||||
code_coverage:
|
code_coverage:
|
||||||
name: "Code coverage report"
|
name: "Code coverage report"
|
||||||
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: unit_tests # Depends on the artifact uploaded by the "unit_tests" job
|
needs: unit_tests # Depends on the artifact uploaded by the "unit_tests" job
|
||||||
steps:
|
steps:
|
||||||
- uses: fgrosse/go-coverage-report@v1.0.2 # Consider using a Git revision for maximum security
|
- uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
coverage-artifact-name: "code-coverage" # can be omitted if you used this default value
|
use_oidc: true
|
||||||
coverage-file-name: "coverage.txt" # can be omitted if you used this default value
|
|
||||||
|
|
||||||
commit_lint:
|
commit_lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: wagoid/commitlint-github-action@v6
|
- uses: wagoid/commitlint-github-action@v6
|
||||||
|
Loading…
Reference in New Issue
Block a user