Skip to content

Commit

Permalink
Add cpplint action
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed May 30, 2024
1 parent 7c94598 commit 50fc14b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Cpplint
defaults:
run:
shell: bash

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
eslint:
name: Cpplint
runs-on: ubuntu-22.04

steps:

- name: Fetch Repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
run: npm ci

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Cpplint
run: pip install cpplint

- name: Run Cpplint
run: |
node -e "require('addon-tools-raub').cpcpplint()"
cpplint --recursive ./src/cpp

0 comments on commit 50fc14b

Please sign in to comment.