2021-10-19 09:42:54 +00:00
|
|
|
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
name: Coding Guidelines
|
|
|
|
|
|
|
|
on:
|
|
|
|
# will be triggered on PR events
|
|
|
|
pull_request:
|
|
|
|
# allow to be triggered manually
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# Cancel any in-flight jobs for the same PR/branch so there's only one active
|
|
|
|
# at a time
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2023-02-08 19:25:35 +00:00
|
|
|
compliance_job:
|
2023-09-29 02:52:54 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2021-10-19 09:42:54 +00:00
|
|
|
steps:
|
|
|
|
- name: checkout
|
2024-01-26 23:55:49 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-10-19 09:42:54 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-10-21 05:58:34 +00:00
|
|
|
|
2021-10-19 09:42:54 +00:00
|
|
|
# github.event.pull_request.base.label = ${{github.repository}}/${{github.base_ref}}
|
|
|
|
- name: Run Coding Guidelines Checks
|
|
|
|
run: /usr/bin/env python3 ./ci/coding_guidelines_check.py --commits ${{ github.event.pull_request.base.sha }}..HEAD
|