SWDEV-123456 - add clang auto-formatting (#255)

[ROCm/hip-tests commit: b23ebe9a0e]
This commit is contained in:
Lytovchenko, Danylo authored and GitHub committed 2025-06-05 14:57:01 +02:00
1 parent 1e71fb6b61
commit 6b91ca1421
3 files changed
+63

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
name: Clang format check
on:
push:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install clang-format
run: |
sudo apt update && sudo apt install -y clang-format
- name: Run clang-format-check
id: clang-format
run: |
chmod +x .github/hooks/clang-format-check.sh
./.github/hooks/clang-format-check.sh --range "${{ github.event.before }}..${{ github.sha }}"