add precommit config #682
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang-format | |
on: [pull_request] | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: git checkout repository | |
uses: actions/checkout@v4 | |
- name: Run clang-format style check for C/C++ programs. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: "14" |