Skip to content

Commit 31371a4

Browse files
committed
test clang-format action
1 parent be47239 commit 31371a4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/provider-agents-scanning.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
with:
3939
fetch-depth: 0
4040

41-
- name: Install tools
41+
- name: Install cppcheck
4242
run: |
4343
sudo apt-get update
44-
sudo apt-get install -y clang-format cppcheck
44+
sudo apt-get install -y cppcheck
4545
4646
- name: Check if file changed
4747
id: changed
@@ -51,9 +51,10 @@ jobs:
5151

5252
- name: clang-format scan ${{ matrix.provider-agent.file }}
5353
if: steps.changed.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
54-
working-directory: ${{ matrix.provider-agent.dir }}
55-
run: |
56-
clang-format --dry-run -style=llvm --Werror ${{ matrix.provider-agent.file }}
54+
uses: DoozyX/[email protected]
55+
with:
56+
source: ${{ matrix.provider-agent.dir }}/${{ matrix.provider-agent.file }}
57+
style: llvm
5758

5859
- name: cppcheck scan ${{ matrix.provider-agent.file }} (SARIF)
5960
if: steps.changed.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)