diff --git a/.github/workflows/check-format.yaml b/.github/workflows/check-format.yaml new file mode 100644 index 0000000..bbb3aa2 --- /dev/null +++ b/.github/workflows/check-format.yaml @@ -0,0 +1,27 @@ +name: Check Code Formatting 🛠️ +on: + workflow_call: +jobs: + clang-format: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: clang-format check 🐉 + id: clang-format + uses: ./.github/actions/run-clang-format + with: + failCondition: error + + cmake-format: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: cmake-format check 🎛️ + id: cmake-format + uses: ./.github/actions/run-cmake-format + with: + failCondition: error