Create preset for man_made=footwear_decontamination
(#1235)
#2199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Style Checks | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Check file endings | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
notJSONs=`find data/ -type f -not -iname "*.json"` | |
for f in $notJSONs | |
do | |
echo "::error file=$f::File $f is not a .json file." | |
done | |
if [ ! -z "$notJSONs" ]; then exit 1; fi | |
prettier: | |
name: Check for code formatting mistakes | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- run: npm clean-install | |
- run: 'for f in `find data/ -type f -not -iname "*.json"`; do echo "::error File $f is not a .json file."; done' | |
- run: npm run lint | |
codespell: | |
name: Check for spelling errors | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: codespell-project/actions-codespell@master | |
with: | |
check_filenames: true | |
skip: ./.git,./dist,./data/deprecated.json | |
ignore_words_list: "auxilary,casette,cemetary,chancel,discus,extentions,faiway,generat,goverment,guerilla,guyser,kindergarden,ore,pavillion,sculpter,storys,linz,te" | |
only_warn: 1 | |