Debian Codegraph @

.github/workflows/lint_and_format_check.yml

raw
1 name: Lint and format
2
3 on:
4 pull_request:
5 types: [opened, synchronize, reopened, ready_for_review]
6 paths-ignore:
7 - '**.md'
8 - 'docs/**'
9 push:
10 branches:
11 - main
12 paths-ignore:
13 - '**.md'
14 - 'docs/**'
15
16 permissions:
17 contents: read
18
19 concurrency:
20 group: ${{ github.workflow }}-${{ github.ref }}
21 cancel-in-progress: true
22
23 jobs:
24 lint-and-format:
25 runs-on: ubuntu-latest
26 steps:
27 - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7
28
29 - name: Run clang-format
30 uses: jidicula/clang-format-action@4726374d1aa3c6aecf132e5197e498979588ebc8 # v4.15.0
31 with:
32 clang-format-version: '17'
33