Skip to content

Merge pull request #280 from edu-rossrobotics/feature/service_respons… #532

Merge pull request #280 from edu-rossrobotics/feature/service_respons…

Merge pull request #280 from edu-rossrobotics/feature/service_respons… #532

Workflow file for this run

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@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: "${{ env.COVERAGE_DATA_PATH }}"
fail_ci_if_error: true