mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 19:25:53 +00:00
34 lines
930 B
YAML
34 lines
930 B
YAML
name: Generate code coverage report
|
|
description: Run tests, generate code coverage report and upload it to codecov.io
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Run tests
|
|
shell: bash
|
|
run: |
|
|
build/clio_tests --backend_host=scylladb
|
|
|
|
- name: Run gcovr
|
|
shell: bash
|
|
run: |
|
|
gcovr -e unittests --xml build/coverage_report.xml -j8 --exclude-throw-branches
|
|
|
|
- name: Archive coverage report
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: coverage-report.xml
|
|
path: build/coverage_report.xml
|
|
retention-days: 30
|
|
|
|
- name: Upload coverage report
|
|
uses: wandalen/wretry.action@v1.3.0
|
|
with:
|
|
action: codecov/codecov-action@v3
|
|
with: |
|
|
files: build/coverage_report.xml
|
|
fail_ci_if_error: true
|
|
verbose: true
|
|
token: ${{ env.CODECOV_TOKEN }}
|
|
attempt_limit: 5
|
|
attempt_delay: 10000
|