summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 12:35:11 +0800
committerGitHub <noreply@github.com>2024-10-29 12:35:11 +0800
commita15d770242f88aa4b33cd7d3a97de9c8d86a2315 (patch)
tree24b5029d86d65b1e21cf1ee3a032f8ac506cdd8f /.github
parent657287e774c6d7f740bedbcbd9846de473dd1b18 (diff)
Check formatting in CI (#5409)
also add ci to check cmake formatting
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check-formatting.yml16
1 files changed, 16 insertions, 0 deletions
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
+