Skip to content

feat: clang-tidy code style action #5

feat: clang-tidy code style action

feat: clang-tidy code style action #5

Workflow file for this run

name: Code style check
on:
push:
branches: ["main"]
# paths: ["**.h", "**.c"]
pull_request:
branches: ["main"]
# paths: ["**.h", "**.c"]
jobs:
cpp-linter:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
# Use .clang-tidy config file.
tidy-checks: ''
version: 19
thread-comments: false
step-summary: true
tidy-review: false
format-review: false
files-changed-only: false
- name: Fail fast
if: steps.linter.outputs.clang-tidy-checks-failed > 0
run: exit 1