Skip to content

Add clang format workflow #5

Add clang format workflow

Add clang format workflow #5

Workflow file for this run

name: C++ lint and format
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
jobs:
cpp-lint:
name: Clang Tidy and Clang Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: "file" # Use .clang-format config file
# tidy-checks: "-*" # disable clang-tidy checks.
tidy-checks: "" # Use .clang-tidy config file
# only 'update' a single comment in a pull request's thread.
# thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}