You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
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,10 +11,8 @@ jobs:
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.
0 commit comments