5e70eeecfc
* added make targets spell and codespell for spelling checks * fix spelling errors detected by codespell * added codespell to github workflow Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
45 lines
874 B
YAML
45 lines
874 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Create Build Environment
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -qq clang-tools
|
|
- name: Lint
|
|
run: make clean lint
|
|
|
|
cppcheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Create Build Environment
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -qq cppcheck
|
|
- name: cppcheck
|
|
run: make clean cppcheck
|
|
|
|
codespell:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Create Build Environment
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -qq codespell
|
|
- name: codespell
|
|
run: make spell
|
|
|