Skip to content

Commit

Permalink
ci: add clang-format action
Browse files Browse the repository at this point in the history
To keep the style consistent.

Closes: #88
Signed-off-by: Emil Velikov <[email protected]>
Link: #118
Signed-off-by: Lucas De Marchi <[email protected]>
  • Loading branch information
evelikov authored and lucasdemarchi committed Sep 24, 2024
1 parent f34d115 commit dccdc0b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check code style with clang-format

on:
pull_request:
branches: [master]

permissions:
contents: read

jobs:
stylecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }}
- uses: yshui/git-clang-format-lint@a65b466f5903524aef27552f63c3906c0f73f184 # v1.16
with:
base: ${{ github.event.pull_request.base.sha }}

0 comments on commit dccdc0b

Please sign in to comment.