Separate clang-format test into its own workflow (#283)

* Rework workflow dependencies
This commit is contained in:
Rickey
2025-12-06 23:59:55 +02:00
committed by GitHub
parent 687d77e18a
commit a82bd671de
4 changed files with 28 additions and 14 deletions
@@ -0,0 +1,33 @@
name: Run Clang Format Test
on:
workflow_dispatch:
workflow_call:
jobs:
run-test:
name: Verify code formatting
runs-on: ubuntu-latest
steps:
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format
- name: Checkout repository
uses: actions/checkout@v5
- name: Run clang-format
run: >
clang-format --dry-run -Werror
include/bitset.h source/bitset.c
include/pool.h source/pool.c
include/card.h source/card.c
include/game.h source/game.c
include/hand_analysis.h source/hand_analysis.c
include/list.h source/list.c
include/sprite.h source/sprite.c
include/splash_screen.h source/splash_screen.c
include/blind.h source/blind.c
# Currently contains only the code that has been formatted to conform
# When all existing code conforms, change to this:
# run: clang-format --dry-run -Werror include/*.h source/*.c