-
-
Notifications
You must be signed in to change notification settings - Fork 119
60 lines (55 loc) · 1.53 KB
/
code_linter.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Run Code Linter
on:
workflow_dispatch:
push:
paths:
- 'bridge/**'
jobs:
cppcheck:
runs-on: macos-12
name: Cppcheck
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Run cppcheck
run: |
brew install cppcheck
cd bridge/polyfill
npm i
npm run build
cd ../
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
cppcheck --project=compile_commands.json -ithird_party --enable=all --suppress=missingIncludeSystem --quiet
continue-on-error: true
check_merge_conflict:
runs-on: ubuntu-latest
name: Find merge conflicts
steps:
# Checkout the source code so we have some files to look at.
- uses: actions/checkout@v3
with:
submodules: recursive
# Run the actual merge conflict finder
- name: Merge Conflict finder
uses: olivernybroe/[email protected]
reformat-bridge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: DoozyX/[email protected]
with:
source: './bridge'
exclude: './bridge/third_party/*'
extensions: 'h,cc,c'
clangFormatVersion: 12
inplace: True
- uses: EndBug/add-and-commit@v4
with:
author_name: openwebf-bot
author_email: [email protected]
message: 'Committing clang-format changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}