-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.04 KB
/
Copy pathlint-cpp-objc.yaml
File metadata and controls
46 lines (41 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Lint cpp and objc
on:
pull_request:
branches: [main]
paths:
- ".github/workflows/lint-cpp-objc.yaml"
- "apple/**"
- "cpp/**"
- "encoding-core/**"
- "native-tests/**"
- "scripts/lint-cpp.sh"
- "scripts/lint-objc.sh"
- ".clang-format"
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
lint-cpp-objc:
name: Lint cpp and objc
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'cpp'
- 'encoding-core'
- 'native-tests'
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
fetch-depth: 0
- name: Setup JS
uses: ./.github/actions/setup-js
with:
enable-cache: true
- name: Run ClangFormat
uses: jidicula/clang-format-action@654a770daa28443dd111d133e4083e21c1075674 #v4.18.0
with:
check-path: ${{ matrix.path }}
exclude-regex: '^encoding-core/base64.hpp$'