Check Formatting #1122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2024 OGL authors | |
# | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
name: Check Formatting | |
run-name: Check Formatting | |
on: push | |
jobs: | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run clang-format style check for C/C++/Protobuf programs. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '13' | |
check-path: '.' | |
fallback-style: 'Mozilla' # optional | |
- name: check for todo fixme note | |
run: | | |
NTODOS="$(grep -r 'TODO DONT MERGE' --exclude-dir=.github | wc -l)" | |
echo "Found $NTODOS TODO DONT MERGE notes" | |
! grep -q -r "TODO DONT MERGE" --exclude-dir=.github |