mirror of
https://github.com/eclipse/wakaama.git
synced 2025-05-08 23:31:37 +08:00
38 lines
1006 B
YAML
38 lines
1006 B
YAML
name: Compliance
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
lint-code:
|
|
name: Run compliance checks
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout code including full history
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install compliance tools
|
|
run: |
|
|
sudo apt update
|
|
sudo apt -qy --no-install-recommends install clang-format-14
|
|
pip3 install -r tools/requirements-compliance.txt
|
|
|
|
- name: Check commits with gitlint
|
|
run: |
|
|
tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-gitlint
|
|
|
|
- name: Check C code (delta) with clang-format
|
|
run: |
|
|
tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-clang-format
|
|
|
|
- name: Check CMakeLists.txt files with cmake-lint
|
|
run: |
|
|
tools/ci/run_ci.sh --run-cmake-format
|
|
|
|
- name: Check Python code with pylint
|
|
run: |
|
|
cd tests
|
|
pylint integration
|