Skip to content

Commit

Permalink
ci: add cpp linter
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Oct 2, 2024
1 parent b078775 commit ed911dc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ concurrency:
cancel-in-progress: true

jobs:

cpp-linter:
runs-on: ubuntu-latest
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: microsoft
thread-comments: true
files-changed-only: false
tidy-checks: '-*'

- name: Fail fast?!
if: steps.linter.outputs.checks-failed != 0
run: |
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}"
exit 1
build-n-test:
runs-on: [gpu]

Expand Down

0 comments on commit ed911dc

Please sign in to comment.