Skip to content

Commit fe4edae

Browse files
committed
Add cpplint
1 parent c2b2884 commit fe4edae

File tree

4 files changed

+63
-26
lines changed

4 files changed

+63
-26
lines changed

.github/workflows/cpplint.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Cpplint
2+
defaults:
3+
run:
4+
shell: bash
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
pull_request:
11+
branches:
12+
- master
13+
14+
jobs:
15+
eslint:
16+
name: Cpplint
17+
runs-on: ubuntu-20.04
18+
19+
steps:
20+
21+
- name: Fetch Repository
22+
uses: actions/checkout@v3
23+
with:
24+
persist-credentials: false
25+
26+
- name: Install Node.js
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 18.16.0
30+
cache: 'npm'
31+
32+
- name: Install Modules
33+
run: npm ci
34+
35+
- name: Install Python
36+
uses: actions/setup-python@v4
37+
with:
38+
python-version: '3.12'
39+
40+
- name: Install Cpplint
41+
run: pip install cpplint
42+
43+
- name: Run Cpplint
44+
run: |
45+
node -e "require('addon-tools-raub').cpcpplint()"
46+
cpplint --recursive ./src/cpp

package-lock.json

Lines changed: 13 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Luis Blanco <[email protected]>",
33
"name": "webgl-raub",
4-
"version": "4.0.1",
4+
"version": "4.0.2",
55
"description": "WebGL for Node.js",
66
"license": "MIT",
77
"main": "index.js",
@@ -44,13 +44,14 @@
4444
"url": "https://github.com/node-3d/webgl-raub.git"
4545
},
4646
"dependencies": {
47-
"addon-tools-raub": "^7.3.0",
47+
"addon-tools-raub": "^7.4.0",
4848
"deps-opengl-raub": "^5.1.1",
4949
"segfault-raub": "^2.1.2"
5050
},
5151
"devDependencies": {
52-
"eslint-plugin-node": "^11.1.0",
52+
"@types/node": "^20.8.3",
5353
"eslint": "^8.51.0",
54+
"eslint-plugin-node": "^11.1.0",
5455
"node-addon-api": "^7.0.0",
5556
"typescript": "^5.2.2"
5657
}

src/CPPLINT.cfg

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)