name: clang-format check on: push: branches: - master paths-ignore: - '*.md' pull_request: types: [ opened, synchronize ] paths-ignore: - '*.md' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: formatting-check: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Formatting Check (Source) uses: jidicula/clang-format-action@v4.11.0 with: clang-format-version: '13' check-path: 'Source' fallback-style: 'webkit' - name: Formatting Check (test) uses: jidicula/clang-format-action@v4.11.0 with: clang-format-version: '13' check-path: 'test' fallback-style: 'webkit'