Skip to content

Commit 2f07360

Browse files
committed
Enforce code formatting in PR
1 parent c8533ab commit 2f07360

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build-pr.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Build&Test PR
88
on:
99

1010
# automatic on every pull request
11-
pull_request_target:
11+
pull_request:
1212

1313
# manual (for community PRs that we want to force-run here)
1414
workflow_dispatch:
@@ -274,3 +274,17 @@ jobs:
274274
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
275275
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
276276
HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }}
277+
278+
# run for code-coverage and upload the result as an artifact.
279+
code-formatting:
280+
runs-on: ubuntu-latest
281+
needs: get-refs
282+
283+
steps:
284+
- uses: actions/checkout@v5
285+
with:
286+
ref: ${{ needs.get-refs.outputs.ref }}
287+
token: ${{ secrets.GH_TOKEN }}
288+
289+
# https://github.com/jidicula/clang-format-action/releases/tag/v4.15.0
290+
- uses: jidicula/clang-format-action@4726374d1aa3c6aecf132e5197e498979588ebc8

0 commit comments

Comments
 (0)