File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
# GitHub Action for running cpplint commands
2
2
3
- Each time that new code is pushed into your repo, you can have a [ cpplint] ( https://github.com/cpplint/cpplint ) command automatically run.
3
+ Each time new code is pushed into your repo, you can have a [ cpplint] ( https://github.com/cpplint/cpplint ) command automatically run.
4
4
5
5
Example workflow:
6
6
* Put the following text into a file named ` .github/workflows/cpplint.yml ` in your repo):
11
11
cpplint :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v1
15
- - uses : actions/setup-python@v1
16
- - run : pip install cpplint
17
- - run : cpplint --recursive .
14
+ - uses : actions/checkout@v4
15
+ - run : pipx run cpplint --recursive .
18
16
` ` `
19
17
Customize the final line to match your requirements.
20
18
` ` `
You can’t perform that action at this time.
0 commit comments