Merge pull request #259 from beku-epitome/bugfix/clang-compile #507
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/unit-tests.yml" | |
- 'extras/test/**' | |
- 'src/**' | |
push: | |
paths: | |
- ".github/workflows/unit-tests.yml" | |
- 'extras/test/**' | |
- 'src/**' | |
jobs: | |
test: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
env: | |
COVERAGE_DATA_PATH: extras/coverage-data/coverage.info | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: arduino/cpp-test-action@main | |
with: | |
runtime-paths: | | |
- extras/test/build/bin/test_cyphal++ | |
coverage-exclude-paths: | | |
- '*/extras/test/*' | |
- '/usr/*' | |
coverage-data-path: ${{ env.COVERAGE_DATA_PATH }} | |
- name: Upload coverage report to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: "${{ env.COVERAGE_DATA_PATH }}" | |
fail_ci_if_error: true |