lintcommit.yml 652 B

12345678910111213141516171819202122232425262728
  1. name: lintcommit
  2. on:
  3. pull_request:
  4. types: [opened, synchronize, reopened, ready_for_review]
  5. branches:
  6. - 'master'
  7. jobs:
  8. lint-commits:
  9. runs-on: ubuntu-latest
  10. if: github.event.pull_request.draft == false
  11. steps:
  12. - uses: actions/checkout@v4
  13. with:
  14. fetch-depth: 0
  15. ref: ${{ github.event.pull_request.head.sha }}
  16. - uses: ./.github/actions/setup
  17. - name: Build
  18. run: |
  19. cmake -S cmake.deps --preset ci
  20. cmake --build .deps
  21. cmake --preset ci
  22. cmake --build build
  23. - name: lintcommit
  24. run: cmake --build build --target lintcommit