mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 08:48:05 +00:00
chore: combine test coverage for core tests
This commit is contained in:
38
.github/workflows/core-coverage.yml
vendored
Normal file
38
.github/workflows/core-coverage.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Upload coverage
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
unit_test_report:
|
||||
required: true
|
||||
type: boolean
|
||||
integration_test_report:
|
||||
required: true
|
||||
type: boolean
|
||||
secrets:
|
||||
CODECOV_TOKEN:
|
||||
required: true
|
||||
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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: ${{ unit_test_report == 'true' && integration_test_report == 'true' }}
|
||||
run: make core_coverage_reports
|
||||
- name: publish coverage
|
||||
if: ${{ unit_test_report == 'true' && integration_test_report == 'true' }}
|
||||
uses: codecov/codecov-action@v5.4.0
|
||||
with:
|
||||
file: full-profile.cov
|
||||
name: core-integration-tests-postgres
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
Reference in New Issue
Block a user