Skip to content

use CPM to handle catch2 and codecoverage deps #56

use CPM to handle catch2 and codecoverage deps

use CPM to handle catch2 and codecoverage deps #56

Workflow file for this run

name: cpp-linter
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
# The following value will only update a single comment
# in a pull request's thread. Set it to false to disable the comment.
# Set it to true to post a new comment (and delete the old comment).
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
lines-changed-only: false
files-changed-only: true
step-summary: true
extra-args: -std=c++20
- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
run: |
echo "Some files failed the linting checks!"
exit 1