status-check.yaml 816 B

12345678910111213141516171819202122232425262728293031
  1. name: status-checks
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. workflow_dispatch:
  8. jobs:
  9. validate:
  10. runs-on: ubuntu-24.04
  11. steps:
  12. - name: checkout code
  13. uses: actions/checkout@v4
  14. - name: Test changed source files
  15. id: changed-files
  16. uses: tj-actions/changed-files@v45
  17. with:
  18. files: examples/**
  19. - name: validate coding style and functionality
  20. if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
  21. github.event_name == 'workflow_dispatch' }}
  22. run: |
  23. sudo apt install -q -y clang-format cppcheck gcc libsqlite3-dev
  24. .ci/check-newline.sh
  25. .ci/check-format.sh
  26. .ci/static-analysis.sh
  27. .ci/build-n-run.sh
  28. shell: bash