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

Lint Action and Reorganization of Testing Actions #200

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

ardasener
Copy link
Contributor

@ardasener ardasener commented Oct 10, 2022

This PR primarily adds a lint action to our GitHub Actions setup. Some of the existing actions are rearranged to provide better readability for the reviewer.

Lint Action

The action used is detailed here. Basically, on every pull request, it will run clang-format and clang-tidy only on the modified lines of the code. Only static checks are turned on, you should refer to the test actions for actual compilation errors. The results will be reported as annotations (you can see an example here). Please note that this action will never fail so it will never block a merge. The idea is for the reviewer to analyze these results and decide how problematic they are. This is necessary as some of these things are subjective and could also be false positives.

Reorganization of Test Actions

With the previous setup, each pull request resulted in 3 different actions being run (one for each OS). These are merged into a single workflow (each OS being a different step). The lint action is also implemented as a step in the same workflow. So everything the reviewer needs to check should be on the same page (again you can see an example here).

@ardasener ardasener self-assigned this Oct 10, 2022
@ardasener ardasener added this to the Milestone 3 milestone Oct 10, 2022
@ardasener ardasener linked an issue Oct 10, 2022 that may be closed by this pull request
@AmroAlJundi AmroAlJundi added state: approved Approved to proceed. Ready to be merged and removed state: review needed labels Oct 10, 2022
@ardasener ardasener merged commit 38e4e7b into develop Oct 10, 2022
@ardasener ardasener deleted the github/lint_action branch October 10, 2022 10:53
SinanEkm pushed a commit that referenced this pull request Aug 19, 2024
Lint Action and Reorganization of Testing Actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: soon High priority state: approved Approved to proceed. Ready to be merged type: testing Related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add git hook formatter
2 participants