mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
name: '🔎 Check Code Formatting'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- '**/*.c'
|
|
- '**/*.cc'
|
|
- '**/*.h'
|
|
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- reopened
|
|
- synchronize
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- '**/*.c'
|
|
- '**/*.cc'
|
|
- '**/*.h'
|
|
|
|
jobs:
|
|
formatting-check:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: '⏳ Checkout repository'
|
|
uses: actions/checkout@v5
|
|
with:
|
|
submodules: false
|
|
persist-credentials: false
|
|
fetch-depth: 50
|
|
|
|
- name: '🔎 Check code formatting'
|
|
uses: openmv/uncrustify-action@v1
|
|
with:
|
|
config-path: 'tools/uncrustify.cfg'
|
|
extensions: 'c,cc,h'
|
|
exclude-patterns: |
|
|
cubeai/**
|
|
docker/**
|
|
docs/**
|
|
drivers/**
|
|
!drivers/sensors/**
|
|
lib/**
|
|
!lib/imlib/**
|
|
!lib/tflm/**
|
|
scripts/**
|
|
tools/**
|
|
uncrustify-version: '0.75.0'
|
|
fail-on-error: true
|