Skip to content

Commit a0ebb9b

Browse files
committed
ci: run clang-format for src and tests in one job
Replace the per-path matrix (which spawned two parallel jobs) with a single job that checks src and tests as two steps. One runner and one checkout instead of two.
1 parent 42e9909 commit a0ebb9b

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/clang-format.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ on:
99
jobs:
1010
check:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
path:
15-
- 'src'
16-
- 'tests'
1712
steps:
1813
- uses: actions/checkout@v6
19-
- name: Run clang-format style check
14+
- name: clang-format (src)
2015
uses: jidicula/clang-format-action@v4.18.0
2116
with:
2217
clang-format-version: '21'
23-
check-path: ${{ matrix.path }}
18+
check-path: src
19+
only-changed-files: true
20+
- name: clang-format (tests)
21+
uses: jidicula/clang-format-action@v4.18.0
22+
with:
23+
clang-format-version: '21'
24+
check-path: tests
2425
only-changed-files: true

0 commit comments

Comments
 (0)