CodeChecks.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: CodeChecks
  2. on:
  3. pull_request:
  4. types: [opened, reopened]
  5. branches:
  6. - development
  7. permissions:
  8. contents: read
  9. jobs:
  10. clang-format:
  11. name: Check code formatting with clang-format-13
  12. runs-on: ubuntu-20.04
  13. steps:
  14. - name: Clone the Gem repository
  15. uses: actions/checkout@v3
  16. - name: Clone the run-clang-format repository
  17. uses: actions/checkout@v3
  18. with:
  19. repository: Sarcasm/run-clang-format
  20. ref: 39081c9c42768ab5e8321127a7494ad1647c6a2f
  21. path: run-clang-format
  22. - name: Install clang-format-13
  23. run: |
  24. wget https://apt.llvm.org/llvm.sh
  25. chmod +x llvm.sh
  26. sudo ./llvm.sh 13
  27. sudo apt update && sudo apt install clang-format-13
  28. - name: Run the 'run-clang-format.py' file
  29. run: |
  30. cp run-clang-format/run-clang-format.py run-clang-format.py
  31. sudo rm -r run-clang-format
  32. ./run-clang-format.py -r --style=file --clang-format-executable=clang-format-13 Code
  33. license:
  34. name: Check license headers
  35. runs-on: ubuntu-latest
  36. steps:
  37. - uses: actions/checkout@v3
  38. - uses: apache/[email protected]
  39. with:
  40. mode: check
  41. config: .licenserc.yaml