Skip to content

Commit

Permalink
github-ci - add make format-check to github pipeline
Browse files Browse the repository at this point in the history
In this commit, we introduce a new step to the GitHub Continuous Integration (CI) pipeline to ensure code formatting consistency.
The newly added step runs the 'make format-check' command on the project's source code, specifically targeting `.cpp` and `.hpp` files.
By including 'make format-check' in the CI pipeline, we automate the process of checking code formatting for every code change pushed to the repository.
The pipeline will fail if any code formatting violations are detected, providing immediate feedback to developers, encouraging them to address formatting issues before merging their changes.
  • Loading branch information
SiskaPavel committed Oct 24, 2023
1 parent af916bf commit c60c919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
run: autoreconf -i
- name: configure
run: ./configure --with-raw --with-pcap --with-nemea --with-gtest
- name: make format-check
run: make format-check
- name: make
run: make
- name: make check
Expand Down

0 comments on commit c60c919

Please sign in to comment.