name: C++

on:
  pull_request:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  clang-format:
    name: Format
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - name: clang-format
        uses: ./.github/actions/clang-format
        with:
          directory: ./yoga
