[pre-commit.ci] pre-commit autoupdate #463
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
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
clang-tidy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.2 | |
with: | |
submodules: recursive | |
- name: Set up CMake | |
uses: lukka/get-cmake@v3.31.3 | |
- name: Configure CMake | |
working-directory: ${{ github.workspace }}/src/hades_extensions | |
run: cmake --preset LinuxDebug | |
- name: Run clang-tidy | |
working-directory: ${{ github.workspace }}/src/hades_extensions | |
run: clang-tidy -p ./build-debug/compile_commands.json --extra-arg=-std=c++20 --quiet ./**/*.cpp ./**/*.hpp | |
# cppcheck: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v4.2.2 | |
# - name: Run cppcheck | |
# working-directory: ${{ github.workspace }}/src/hades_extensions | |
# run: | | |
# sudo apt-get install -y cppcheck | |
# cppcheck --enable=all --suppress=missingInclude --suppress=unknownMacro --quiet --error-exitcode=10 ./include/ ./src/ ./tests/ | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.2 | |
with: | |
submodules: recursive | |
- name: Run clang-format | |
uses: jidicula/clang-format-action@v4.14.0 | |
with: | |
check-path: ${{ github.workspace }}/src/hades_extensions | |
exclude-regex: build-debug|vcpkg |