on: push: paths: paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] pull_request: paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] permissions: pull-requests: write metadata: read contents: write 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: 'file' tidy-checks: '' files-changed-only: false thread-comments: false #${{ github.event_name == 'pull_request' && 'update' }} tidy-review: true format-review: 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