{"id":14961852,"url":"https://github.com/arduino/cpp-test-action","last_synced_at":"2025-10-09T20:19:57.004Z","repository":{"id":40370685,"uuid":"302555778","full_name":"arduino/cpp-test-action","owner":"arduino","description":"A GitHub Actions action for testing C/C++ projects","archived":false,"fork":false,"pushed_at":"2024-10-20T12:03:29.000Z","size":58,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-05T05:51:14.000Z","etag":null,"topics":["c","c-plus-plus","ci","cmake","continuous-integration","coverage","cpp","github-actions","unit-testing"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arduino.png","metadata":{"funding":{"github":["arduino"],"custom":"https://www.arduino.cc/en/Main/Donate"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-09T06:43:08.000Z","updated_at":"2025-04-04T03:49:52.000Z","dependencies_parsed_at":"2024-06-13T22:01:52.383Z","dependency_job_id":"ede786ea-41d2-4eef-8ac8-4426e68cccb5","html_url":"https://github.com/arduino/cpp-test-action","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":0.3157894736842105,"last_synced_commit":"b40a57103698adc6ca7303ede5dd38fdac677f9c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arduino/cpp-test-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arduino%2Fcpp-test-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arduino%2Fcpp-test-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arduino%2Fcpp-test-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arduino%2Fcpp-test-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arduino","download_url":"https://codeload.github.com/arduino/cpp-test-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arduino%2Fcpp-test-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002014,"owners_count":26083258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","c-plus-plus","ci","cmake","continuous-integration","coverage","cpp","github-actions","unit-testing"],"created_at":"2024-09-24T13:27:57.124Z","updated_at":"2025-10-09T20:19:56.981Z","avatar_url":"https://github.com/arduino.png","language":null,"readme":"# `arduino/cpp-test-action`\n\n[![Validate](https://github.com/arduino/cpp-test-action/workflows/Validate%20action.yml/badge.svg)](https://github.com/arduino/cpp-test-action/actions?workflow=Validate+action.yml)\n[![Spell Check](https://github.com/arduino/cpp-test-action/workflows/Spell%20Check/badge.svg)](https://github.com/arduino/cpp-test-action/actions?workflow=Spell+Check)\n\nA [GitHub Actions](https://github.com/features/actions) action for testing C/C++ projects:\n\n- Use [CMake](https://cmake.org/) to build tests\n- Use [Valgrind](https://valgrind.org/) to check for memory leaks\n- Use [LCOV](https://github.com/linux-test-project/lcov)/[GCOV](https://gcc.gnu.org/onlinedocs/gcc/Gcov.html) to generate code coverage data and display a report in the log\n\n## Inputs\n\n### `source-path`\n\nPath containing the `CMakeLists.txt` for the tests.\n\n**Default**: `extras/test`\n\n### `build-path`\n\nThe top-level directory for build output.\n\n**Default**: `extras/test/build`\n\n### `runtime-paths`\n\nYAML format list of paths to runtime binaries generated by building the tests.\n\n**Default**: `\"- extras/test/build/bin/unit-test-binary\"`\n\n### `coverage-exclude-paths`\n\n[YAML](https://en.wikipedia.org/wiki/YAML) format list of paths to remove from coverage data.\n\n**Default**:\n\n```yaml\n- '*/extras/test/*'\n- '/usr/*'\n- '*/src/lib/*'\n```\n\n### `coverage-data-path`\n\nPath to save the coverage data file to.\n\n**Default**: `extras/test/build/coverage.info`\n\n\n## Example usage\n\n```yaml\non: [pull_request, push]\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    env:\n      COVERAGE_DATA_PATH: extras/coverage-data/coverage.info\n\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: arduino/cpp-test-action@v1\n        with:\n          coverage-data-path: ${{ env.COVERAGE_DATA_PATH }}\n\n      # Optional: upload coverage report to codecov.io\n      - uses: codecov/codecov-action@v1\n        with:\n          file: ${{ env.COVERAGE_DATA_PATH }}\n```\n","funding_links":["https://github.com/sponsors/arduino","https://www.arduino.cc/en/Main/Donate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farduino%2Fcpp-test-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farduino%2Fcpp-test-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farduino%2Fcpp-test-action/lists"}