Files
zitadel/.github/workflows/core-coverage.yml
2025-07-10 09:04:30 +02:00

39 lines
1.0 KiB
YAML

name: Upload coverage
on:
workflow_call:
inputs:
unit_test_report:
required: true
type: string
integration_test_report:
required: true
type: string
secrets:
CODECOV_TOKEN:
required: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
with:
path: tmp/coverage/unit
name: unit-coverage
- uses: actions/download-artifact@v4
with:
path: tmp/coverage/integration
name: integration-coverage
- name: merge coverages
if: ${{ inputs.unit_test_report == 'true' && inputs.integration_test_report == 'true' }}
run: make core_coverage_reports
- name: publish coverage
if: ${{ inputs.unit_test_report == 'true' && inputs.integration_test_report == 'true' }}
uses: codecov/codecov-action@v5.4.0
with:
files: full-profile.cov
name: core-tests-postgres
token: ${{ secrets.CODECOV_TOKEN }}