Skip to content

ci: add cpp format check #1

ci: add cpp format check

ci: add cpp format check #1

name: Format Suggestions
on:
push:
branches:
- main
tags: '*'
paths:
- '.github/workflows/format-check-cpp.yml'
- '**/*.cpp'
- '**/*.h'
pull_request:
paths:
- '.github/workflows/format-check-cpp.yml'
- '**/*.cpp'
- '**/*.h'
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
code-style-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.18.2
with:
source: 'deps'