[CI] Add PR review from clang-format
authorDonghyeon Jeong <dhyeon.jeong@samsung.com>
Tue, 2 Jul 2024 01:32:24 +0000 (10:32 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 2 Jul 2024 07:54:17 +0000 (16:54 +0900)
This PR enables the GitHub actions bot to suggest changes based on the clang-format directly.

**Changes proposed in this PR:**
- Add format-review options to enable Pull Request reviews from clang-format.
- Upgrade the cpp-linter version to 2.9.0 to meet minimum version requirements.

**Self-evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test:   [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghyeon Jeong <dhyeon.jeong@samsung.com>
.github/workflows/cpp_linter.yml

index 3c8803f0100027188898a05177485c2f4280147e..6a3cdc95399d9866a4b1fb1f87484ddad9db737d 100644 (file)
@@ -12,16 +12,17 @@ jobs:
           echo "Install mandatory dev packages to avoid false-positive reports from cpp-linter"
           sudo apt-get update
           sudo apt-get install libstdc++-*-dev
-      - uses: cpp-linter/cpp-linter-action@v2.8.0
+      - uses: cpp-linter/cpp-linter-action@v2.9.0
         id: linter
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:
-          style: ''
-          version: 16
+          style: file
+          version: 14
           lines-changed-only: true
           file-annotations: false
           step-summary: true
+          format-review: true
 
       - name: failing fast
         if: steps.linter.outputs.clang-format-checks-failed > 0