mirror of
https://github.com/tomasriveral/NoteWrapper.git
synced 2026-08-11 18:18:36 +02:00
CI: add clang-format check
This commit is contained in:
@@ -10,10 +10,18 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install clang
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-format
|
||||
- name: Check format
|
||||
run: |
|
||||
clang-format --version
|
||||
find src -name "*.c" -o -name "*.h" | xargs clang-format --dry-run --Werror
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
gcc \
|
||||
make \
|
||||
|
||||
Reference in New Issue
Block a user