Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gh-actions): Add an action for checking C format #56

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

sergio-costas
Copy link
Contributor

This action and script allows to automatically check the format style in a C/C++ project, using clang-format. It also can be configured as a GIT hook, to also check it automatically before a commit.

@3v1n0
Copy link
Contributor

3v1n0 commented Jan 14, 2025

I think it would also nice to include some tests for this action, so adding some workflows to that test both scenarios (a formatting succeeded and a failure).

@sergio-costas sergio-costas force-pushed the check-source-format-on-commit-and-push branch from 2590861 to 9c168a8 Compare January 16, 2025 14:03
@sergio-costas
Copy link
Contributor Author

@3v1n0 Completed the asked changes, and the tests

@sergio-costas sergio-costas requested a review from 3v1n0 January 29, 2025 11:40
sergio-costas and others added 8 commits January 29, 2025 12:41
This action and script allows to automatically check the format
style in a C/C++ project, using clang-format. It also can be
configured as a GIT hook, to also check it automatically before
a commit.
@sergio-costas sergio-costas force-pushed the check-source-format-on-commit-and-push branch from 9c168a8 to 66ed29e Compare January 29, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants