ci: add clang format to the actions
This commit is contained in:
parent
5d6546d414
commit
2c04dd79dd
1 changed files with 13 additions and 0 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue