2020-07-13 11:11:21 -04:00
|
|
|
# This workflow does some quick checks.
|
|
|
|
name: Code Checks
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/code_checks.yml'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'include/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'misc/suppressions/**'
|
|
|
|
- '**/*.md'
|
|
|
|
- '!docs/changes*txt'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/code_checks.yml'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'include/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'misc/suppressions/**'
|
|
|
|
- '**/*.md'
|
|
|
|
- '!docs/changes*txt'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-unix:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
name: Check Spelling
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install codespell
|
|
|
|
run: |
|
2020-07-13 11:38:01 -04:00
|
|
|
pip3 install --no-warn-script-location codespell==1.17.1
|
2020-07-13 11:11:21 -04:00
|
|
|
|
|
|
|
- name: Run codespell
|
|
|
|
run: |
|
2020-07-18 13:49:21 -04:00
|
|
|
CODESPELL=$HOME/.local/bin/codespell ./misc/scripts/spellcheck
|
2020-09-27 20:43:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
check-whitespace:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
name: Check Whitespace
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Check for trailing whitespace and TABs
|
|
|
|
run: |
|
|
|
|
git fetch --depth=1 origin master
|
|
|
|
git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol,tab-in-indent \
|
2020-10-05 20:14:46 -04:00
|
|
|
diff --check origin/master \
|
|
|
|
':!Makefile.in' \
|
|
|
|
':!config.guess' \
|
|
|
|
':!config.sub' \
|
|
|
|
':!configure' \
|
|
|
|
':!descrip.mms' \
|
|
|
|
':!install-sh' \
|
|
|
|
':!**/*akefile*' \
|
|
|
|
':!**/*.sln' \
|
|
|
|
':!**/*.vcproj' \
|
|
|
|
':!**/*.xpm'
|