mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Add format target for running clang-format
This commit is contained in:
1 parent
86d52f4712
commit
42aec92642
6 files changed
+224
No files matched your search
@@ -69,6 +69,20 @@ jobs:
|
||||
- name: Test
|
||||
run: ctest --test-dir CSFML/build -C ${{matrix.type.name}} --output-on-failure
|
||||
|
||||
format:
|
||||
name: Formatting
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Format Code
|
||||
run: cmake -DCLANG_FORMAT_EXECUTABLE=clang-format-14 -P cmake/Format.cmake
|
||||
|
||||
- name: Check Formatting
|
||||
run: git diff --exit-code
|
||||
|
||||
tidy:
|
||||
name: Analyze
|
||||
runs-on: macos-14
|
||||
|
||||
Reference in new issue
Block a user