Files
z-bar-qt/.gitea/workflows/lint-cpp.yml
T
AramJonghu 12fd713fd4
Build (C++) / build-zshell (pull_request) Failing after 4s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 25s
Python / lint-format (pull_request) Successful in 23s
Lint & Format (C++) / lint-format (pull_request) Failing after 1m3s
Python / test (pull_request) Successful in 1m0s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m22s
setup Cpp workflow
2026-06-01 21:34:46 +02:00

28 lines
777 B
YAML

name: Lint & Format (C++)
on:
pull_request:
jobs:
lint-format:
runs-on: alpine
container: node:26-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
apk add --no-cache \
clang-extra-tools \
git
- name: Clang Format
run: |
if find . -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -print -quit | grep -q .; then
find . -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -print0 | xargs -0 clang-format --dry-run --Werror
else
echo "No C++ files found"
fi