lint.yml (592B)
1 name: Lint 2 3 on: [ pull_request ] 4 5 permissions: { } 6 7 jobs: 8 cpp-linter: 9 runs-on: ubuntu-24.04 10 steps: 11 - uses: actions/checkout@v4 12 - uses: cpp-linter/cpp-linter-action@v2 13 id: linter 14 with: 15 style: file 16 version: 18 # Ubuntu 24.04 provides clang-format-18 17 lines-changed-only: true 18 # ignore bundled files 19 ignore: 'fuzz/StandaloneFuzzTargetMain.c' 20 21 - name: Fail fast 22 continue-on-error: true # TODO: remove this line in the future 23 if: steps.linter.outputs.checks-failed > 0 24 run: exit 1