ci: add .drone.yml
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
92da944704
commit
bfaef60af4
1 changed files with 25 additions and 0 deletions
25
.drone.yml
Normal file
25
.drone.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: clang format
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: clang format
|
||||||
|
image: clang_format:latest
|
||||||
|
commands:
|
||||||
|
- |
|
||||||
|
set -e
|
||||||
|
clang-format --version
|
||||||
|
|
||||||
|
find ./modules -name '*.?pp' | while read -r file; do
|
||||||
|
echo "Checking format for $file"
|
||||||
|
if ! clang-format --dry-run --Werror "$file"; then
|
||||||
|
echo "❌ Formatting issue detected in $file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "✅ All files are properly formatted"
|
Loading…
Add table
Reference in a new issue