Skip to content

Commit

Permalink
Add cpplint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Mar 8, 2024
1 parent c8d848c commit dcd7f6e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
# branches: ["main"]

# See https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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: Swift Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: cpp-linter/cpp-linter-action@v2
id: linter
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' }}

0 comments on commit dcd7f6e

Please sign in to comment.