coding_guidelines.yml 889 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. name: Coding Guidelines
  4. on:
  5. # will be triggered on PR events
  6. pull_request:
  7. # allow to be triggered manually
  8. workflow_dispatch:
  9. # Cancel any in-flight jobs for the same PR/branch so there's only one active
  10. # at a time
  11. concurrency:
  12. group: ${{ github.workflow }}-${{ github.ref }}
  13. cancel-in-progress: true
  14. permissions:
  15. contents: read
  16. jobs:
  17. compliance_job:
  18. runs-on: ubuntu-22.04
  19. steps:
  20. - name: checkout
  21. uses: actions/checkout@v6.0.1
  22. with:
  23. fetch-depth: 0
  24. # github.event.pull_request.base.label = ${{github.repository}}/${{github.base_ref}}
  25. - name: Run Coding Guidelines Checks
  26. run: /usr/bin/env python3 ./ci/coding_guidelines_check.py --commits ${{ github.event.pull_request.base.sha }}..HEAD