static_code_analysis.yml 696 B

12345678910111213141516171819202122232425262728293031
  1. name: Static code analysis
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. jobs:
  7. scancode_job:
  8. runs-on: ubuntu-latest
  9. name: Static code analysis
  10. if: github.repository_owner == 'RT-Thread'
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Set up Python
  14. uses: actions/setup-python@v3
  15. with:
  16. python-version: 3.8
  17. - name: cppcheck
  18. shell: bash
  19. run: |
  20. sudo apt-get update
  21. sudo apt-get -qq install cppcheck
  22. pip install click PyYaml
  23. git remote -v
  24. git fetch origin
  25. cppcheck --version
  26. ls
  27. git branch -a
  28. python tools/ci/cpp_check.py check