clang-format.yml 551 B

1234567891011121314151617181920212223
  1. name: test-clang-format
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout Source code
  8. if: github.event_name == 'push'
  9. uses: actions/checkout@v4
  10. - name: Checkout Source code
  11. if: github.event_name == 'pull_request'
  12. uses: actions/checkout@v4
  13. with:
  14. ref: ${{ github.event.pull_request.head.sha }}
  15. - uses: DoozyX/clang-format-lint-action@v0.13
  16. with:
  17. source: './src'
  18. extensions: 'h,cpp'
  19. clangFormatVersion: 11
  20. style: file