Skip to content

Commit

Permalink
Add linter CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik-Workshop committed Dec 28, 2024
1 parent bed67c1 commit 2828e3d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: C++ Lint

on:
workflow_dispatch:
push:
branches:
[master, main]
pull_request:
branches:
[master, main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy
- name: Run clang-tidy
run: |
find . -name '*.cpp' -o -name '*.hh' | xargs clang-tidy --quiet

0 comments on commit 2828e3d

Please sign in to comment.