Skip to content

ci: Add clang-format lint checks #1

ci: Add clang-format lint checks

ci: Add clang-format lint checks #1

name: clang-format-lint
on: [push, pull_request]
jobs:
clang-format-lint-job:
# You may pin to the exact commit or the version.
# uses: DoozyX/clang-format-lint-action@c71d0bf4e21876ebec3e5647491186f8797fde31
uses: DoozyX/[email protected]

Check failure on line 8 in .github/workflows/clang-format-lint.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/clang-format-lint.yaml

Invalid workflow file

invalid value workflow reference: references to workflows must be rooted in '.github/workflows'
with:
source: './include/benchmark ./src ./test'
extensions: 'h,cc'
clangFormatVersion: 12
style: Google
# Source folder to check formatting
source: .
# Folder to exclude from formatting check
exclude: 'opt usbfs zabbix'
# List of extensions to check
extensions: # optional, default is c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx
# Version of clang-format
clangFormatVersion: # optional, default is 18
# Formatting style to use
style: # optional, default is file
# Just fix files (`clang-format -i`) instead of returning a diff
inplace: # optional