{"id":16962494,"url":"https://github.com/threeal/ctest-action","last_synced_at":"2025-04-11T21:31:27.212Z","repository":{"id":178105180,"uuid":"661335512","full_name":"threeal/ctest-action","owner":"threeal","description":"Test CMake projects using CTest on GitHub Actions ","archived":false,"fork":false,"pushed_at":"2024-10-24T01:47:32.000Z","size":338,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T17:48:42.376Z","etag":null,"topics":["action","actions","ci","cmake","ctest","github-actions","test","testing"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/ctest-action","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/threeal.png","metadata":{"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":"2023-07-02T14:24:11.000Z","updated_at":"2024-10-11T06:41:38.000Z","dependencies_parsed_at":"2024-05-17T05:28:21.120Z","dependency_job_id":"1f92d19b-e7f4-490c-8551-e71560f6f857","html_url":"https://github.com/threeal/ctest-action","commit_stats":null,"previous_names":["threeal/ctest-action"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fctest-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fctest-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fctest-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threeal%2Fctest-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threeal","download_url":"https://codeload.github.com/threeal/ctest-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248482950,"owners_count":21111408,"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","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":["action","actions","ci","cmake","ctest","github-actions","test","testing"],"created_at":"2024-10-13T23:06:55.204Z","updated_at":"2025-04-11T21:31:27.203Z","avatar_url":"https://github.com/threeal.png","language":null,"readme":"# CTest Action\n\nTest [CMake](https://cmake.org/) projects using [CTest](https://cmake.org/cmake/help/book/mastering-cmake/chapter/Testing%20With%20CMake%20and%20CTest.html) on [GitHub Actions](https://github.com/features/actions).\n\nThis action wraps the [`ctest`](https://cmake.org/cmake/help/latest/manual/ctest.1.html) command for testing CMake projects.\nIt provides a better syntax for specifying test options compared to calling the `ctest` command directly.\n\nBy default, this action invokes `ctest` with the `--output-on-failure` and `--no-tests=error` options set. These options are configured to display the output only in case of failure and to prevent this action from testing a project that lacks any tests.\n\n## Available Inputs\n\n| Name           | Type              | Description                                                                               |\n| -------------- | ----------------- | ----------------------------------------------------------------------------------------- |\n| `test-dir`     | Path              | Specifies the directory in which to look for tests. It defaults to the `build` directory. |\n| `build-config` | String            | Chooses the configuration to test.                                                        |\n| `tests-regex`  | Regex pattern     | Runs tests matching the regular expression.                                               |\n| `verbose`      | `true` or `false` | Enable verbose output from tests.                                                         |\n| `args`         | Multiple strings  | Additional arguments to pass during the CTest run.                                        |\n\n## Example Usages\n\nThis example demonstrates how to use this action to test a CMake project in a GitHub Actions workflow:\n\n```yaml\nname: Test\non:\n  push:\njobs:\n  test-project:\n    name: Test Project\n    runs-on: ubuntu-24.04\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4.2.2\n\n      - name: Build Project\n        uses: threeal/cmake-action@v2.1.0\n\n      - name: Test Project\n        uses: threeal/ctest-action@v1.1.0\n```\n\n### Testing in a Different Directory\n\nBy default, this action runs tests in the `build` directory. To run tests in a different directory, set the `test-dir` input:\n\n```yaml\n- name: Test Project\n  uses: threeal/ctest-action@v1.1.0\n  with:\n    test-dir: sample/build\n```\n\n### Testing a Specific Build Configuration\n\nSome projects may require a build configuration to be specified to run tests. To specify the build configuration, set the `build-config` input:\n\n```yaml\n- name: Test Project\n  uses: threeal/ctest-action@v1.1.0\n  with:\n    build-config: Debug\n```\n\n### Testing Specific Tests\n\nA regular expression pattern can be provided by specifying the `tests-regex` input to run only specific tests that match the given pattern:\n\n```yaml\n- name: Test Project\n  uses: threeal/ctest-action@v1.1.0\n  with:\n    tests-regex: ^test sample\n```\n\n## License\n\nThis project is licensed under the terms of the [MIT License](./LICENSE).\n\nCopyright © 2023-2025 [Alfi Maulana](https://github.com/threeal/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreeal%2Fctest-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreeal%2Fctest-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreeal%2Fctest-action/lists"}