DSA/.github/workflows/cpp.yml

21 lines
539 B
YAML
Raw Normal View History

# GitHub Action to run cpplint recursively on all pushes and pull requests
# https://github.com/cpplint/GitHub-Action-for-cpplint
name: C++
on:
push:
branches: [ main ]
paths: '**/**.cpp'
pull_request:
branches: [ main ]
paths: '**/**.cpp'
jobs:
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install cpplint
- run: cpplint --counting=detailed --filter=-build/namespaces,-legal,-readability,-runtime,-whitespace --recursive .