Skip to content

cpp-linter

cpp-linter #17

Workflow file for this run

name: cpp-linter
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
cpp-linter:
permissions: write-all
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"
format-review: true
tidy-review: true
files-changed-only: false
thread-comments: true
- name: Fail fast?!
if: steps.linter.outputs.checks-failed != 0
run: |
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}"
# for actual deployment
# run: exit 1