Skip to content

fix: pr size labeler should keep the label if appropriate (#94) #18

fix: pr size labeler should keep the label if appropriate (#94)

fix: pr size labeler should keep the label if appropriate (#94) #18

Workflow file for this run

---
name: C++ Linter
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
jobs:
lint-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential clang-format \
clang-tidy cppcheck
- name: Install Google Test (required for compilation flags)
run: |
# Install Google Test from source - most reliable approach
git clone https://github.com/google/googletest.git --depth 1
cd googletest
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Debug Google Test configuration
run: make debug-gtest
- name: Lint C++ code using Makefile
run: |
make lint-cpp
- name: Format check C++ code using Makefile
run: |
make format-cpp
# Check if any files were modified by formatting
if ! git diff --exit-code; then
echo "Code formatting issues found. Please run 'make \
format-cpp' locally."
exit 1
fi