From a15d770242f88aa4b33cd7d3a97de9c8d86a2315 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 12:35:11 +0800 Subject: Check formatting in CI (#5409) also add ci to check cmake formatting --- .github/workflows/check-formatting.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/check-formatting.yml (limited to '.github/workflows') diff --git a/.github/workflows/check-formatting.yml b/.github/workflows/check-formatting.yml new file mode 100644 index 000000000..c923d1855 --- /dev/null +++ b/.github/workflows/check-formatting.yml @@ -0,0 +1,16 @@ +name: Check Formatting (comment /format to auto-fix) + +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + check-formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup + uses: ./.github/actions/format-setup + - run: ./extras/formatting.sh --check-only + -- cgit v1.2.3