jsoncpp/.github/workflows/clang-format.yml

20 lines
484 B
YAML
Raw Normal View History

2024-09-10 01:54:56 +02:00
name: clang-format check
2024-09-10 01:52:59 +02:00
on: [push, pull_request]
jobs:
formatting-check:
2024-09-10 01:54:56 +02:00
name: formatting check
2024-09-10 01:52:59 +02:00
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'examples'
- 'include'
steps:
- uses: actions/checkout@v4
2024-09-10 01:54:56 +02:00
- name: runs clang-format style check for C/C++/Protobuf programs.
2024-09-10 01:52:59 +02:00
uses: jidicula/clang-format-action@v4.13.0
with:
2024-09-10 01:56:02 +02:00
clang-format-version: '18'
2024-09-10 01:52:59 +02:00
check-path: ${{ matrix.path }}