mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-10 21:19:24 +08:00
34 lines
691 B
YAML
34 lines
691 B
YAML
# Lints CMake config and C++ source code.
|
|
|
|
name: "Lint source code"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
|
|
jobs:
|
|
lint-cmake-files:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python3 -m venv build/python
|
|
source build/python/bin/activate
|
|
pip install pyyaml cmake_format clang_format
|
|
|
|
- name: Linting with CMake formatter
|
|
run: ./scripts/lint_cmake.py
|
|
|
|
- name: Linting with Clang format
|
|
run: ./scripts/lint_clang.py
|