coding_guidelines.yml 854 B

12345678910111213141516171819202122232425262728
  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. jobs:
  15. compliance_job:
  16. runs-on: ubuntu-20.04
  17. steps:
  18. - name: checkout
  19. uses: actions/checkout@v4
  20. with:
  21. fetch-depth: 0
  22. # github.event.pull_request.base.label = ${{github.repository}}/${{github.base_ref}}
  23. - name: Run Coding Guidelines Checks
  24. run: /usr/bin/env python3 ./ci/coding_guidelines_check.py --commits ${{ github.event.pull_request.base.sha }}..HEAD