{"id":19053268,"url":"https://github.com/jotavare/github-actions-overview","last_synced_at":"2025-02-22T01:16:00.162Z","repository":{"id":242383448,"uuid":"809411729","full_name":"jotavare/github-actions-overview","owner":"jotavare","description":"Test example with math functions in C and CI with GitHub Actions.","archived":false,"fork":false,"pushed_at":"2024-06-27T00:20:17.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T10:45:30.215Z","etag":null,"topics":["c","cd","ci","functions","github-actions","math"],"latest_commit_sha":null,"homepage":"","language":"C","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/jotavare.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":"2024-06-02T16:04:55.000Z","updated_at":"2024-06-27T00:20:20.000Z","dependencies_parsed_at":"2024-11-08T23:30:04.107Z","dependency_job_id":null,"html_url":"https://github.com/jotavare/github-actions-overview","commit_stats":null,"previous_names":["jotavare/github-actions-overview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotavare%2Fgithub-actions-overview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotavare%2Fgithub-actions-overview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotavare%2Fgithub-actions-overview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotavare%2Fgithub-actions-overview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jotavare","download_url":"https://codeload.github.com/jotavare/github-actions-overview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240109718,"owners_count":19749181,"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":["c","cd","ci","functions","github-actions","math"],"created_at":"2024-11-08T23:29:53.856Z","updated_at":"2025-02-22T01:16:00.144Z","avatar_url":"https://github.com/jotavare.png","language":"C","readme":"## ABOUT\n\nThis repository contains basic math functions (add, subtract, multiply, divide) written in C and a test example to ensure their correctness. It also includes a GitHub Actions workflow for continuous integration (CI) to automatically compile and test the code.\n\n## FILES\n\n- `math.c`: Contains the implementation of the math functions.\n- `math.h`: Header file declaring the math functions.\n- `test_math.c`: Contains test cases to verify the functionality of the math functions.\n- `.github/workflows/ci.yml`: GitHub Actions workflow configuration for continuous integration (CI).\n\n## FUNCTIONS\n\n```c\nint add(int a, int b);\nint subtract(int a, int b);\nint multiply(int a, int b);\ndouble divide(int a, int b);\n```\n\n## TEST LOCALLY\n\nTo compile and run the tests locally, you need to have GCC installed.\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/yourusername/math-functions.git\n   cd math-functions\n   ```\n\n2. Compile the code:\n   ```sh\n   gcc -o test_math math.c test_math.c\n   ```\n\n3. Run the tests:\n   ```sh\n   ./test_math\n   ```\n\nIf all tests pass, you will see the message:\n```\nAll tests passed\n```\n\n## CI WORKFLOW STEPS\n\n1. **Checkout Code**: Checks out the repository code.\n2. **Install Dependencies**: Installs GCC.\n3. **Compile**: Compiles the `math.c` and `test_math.c` files.\n4. **Run Tests**: Runs the compiled test executable.\n\nThe tests are run automatically on every push and pull request to the repository. Other events that trigger workflows are available [here](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows).\n\n## CONTRIBUTING\n\nIf you find any issues or have suggestions for improvements, feel free to fork the repository and open an issue or submit a pull request.\n\n## LICENSE\n\nThis project is available under the MIT License. For further details, please refer to the [LICENSE](https://github.com/jotavare/github-actions-overview/blob/main/LICENSE) file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjotavare%2Fgithub-actions-overview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjotavare%2Fgithub-actions-overview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjotavare%2Fgithub-actions-overview/lists"}