cl3/.gitea/workflows/check-format.yml
Timofey Khoruzhii 9834cf509d
All checks were successful
Clang-format Check / clang-format-check (push) Successful in 16s
fix ci in another branches
2023-05-09 01:29:29 +03:00

23 lines
481 B
YAML

name: Clang-format Check
on: [push]
jobs:
clang-format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install clang-format
run: |
apt-get update -y
apt-get upgrade -y
apt-get install -y clang-format
- name: Check code formatting
run: |
find . -type f -regex '.*\.\(cpp\|hpp\|c\|h\)' -exec clang-format -style=file -i {} \;
git diff --exit-code