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
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,24 @@
3
3
Each time that 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
-
* 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 .
17
20
```
18
-
Or to add other cpplint options to __args =__ above.
21
+
22
+
Or to add other cpplint options to "__args =__" above.
0 commit comments