ci: add clang format to the actions

This commit is contained in:
Ade Attwood 2022-08-06 15:09:15 +01:00 committed by Ade Attwood
parent 5d6546d414
commit 2c04dd79dd

View file

@ -35,6 +35,19 @@ jobs:
- name: Run luacheck - name: Run luacheck
run: luacheck . run: luacheck .
clang-format:
name: Clang Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y clang-format findutils
- name: Run clang format
run: find ./cpp -name "*.cpp" -o -name "*.hpp" | xargs clang-format -Werror --dry-run
test: test:
name: Build and test name: Build and test
runs-on: ubuntu-latest runs-on: ubuntu-latest