clang-format.yml 514 B

1234567891011121314151617181920
  1. name: Clang Format Checker
  2. on:
  3. pull_request:
  4. types: [opened, synchronize, reopened]
  5. jobs:
  6. build:
  7. runs-on: ubuntu-22.04
  8. steps:
  9. - uses: actions/checkout@v2
  10. - uses: cpp-linter/cpp-linter-action@v2.1.1
  11. id: linter
  12. env:
  13. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  14. with:
  15. style: file
  16. lines-changed-only: true
  17. version: 14
  18. - name: Fail fast?!
  19. if: steps.linter.outputs.checks-failed > 0
  20. run: echo "Some files failed the linting checks!"