File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 33Each time that new code is pushed into your repo, you can have a [ cpplint] ( https://github.com/cpplint/cpplint ) command automatically run.
44
55Example workflow:
6- * Put the following text into a file named ` .github/main.workflow ` in your repo):
7- ``` hcl
8- workflow "on push" {
9- on = "push"
10- resolves = ["GitHub Action for cpplint"]
11- }
12-
13- action "GitHub Action for cpplint" {
14- uses = "cclauss/GitHub-Action-for-cpplint@master"
15- args = "cpplint --recursive ."
16- }
6+ * Put the following text into a file named ` .github/workflows/cpplint.yml ` in your repo):
7+ ``` yaml
8+ on : push
9+ name : on push
10+ jobs :
11+ gitHubActionForCpplint :
12+ name : GitHub Action for cpplint
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@master
16+ - name : GitHub Action for cpplint
17+ uses : cpplint/GitHub-Action-for-cpplint@master
18+ with :
19+ args : cpplint --recursive .
1720` ` `
18- Or to add other cpplint options to __ args =__ above.
21+
22+ Or to add other cpplint options to "__args =__" above.
23+
1924` ` `
2025Syntax : cpplint.py [--verbose=#] [--output=emacs|eclipse|vs7|junit]
2126 [--filter=-x,+y,...]
You can’t perform that action at this time.
0 commit comments