From bfaef60af4554a0c1d263703377e81865d80137e Mon Sep 17 00:00:00 2001 From: light7734 Date: Fri, 11 Jul 2025 13:02:30 +0330 Subject: [PATCH] ci: add .drone.yml --- .drone.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..348382e --- /dev/null +++ b/.drone.yml @@ -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"