Commit c263aec7 authored by John Bampton's avatar John Bampton

refactor: add the spell checker Action to the Lint Action file

Order jobs in workflow.
parent da6c4ed1
...@@ -3,23 +3,6 @@ name: ❄️ Lint ...@@ -3,23 +3,6 @@ name: ❄️ Lint
on: [pull_request] on: [pull_request]
jobs: jobs:
yamllint:
name: 🍶 YAML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install yamllint
- name: 🧹 YAML Lint
run: |
# return non-zero exit code on warnings
yamllint --strict .
markdownlint: markdownlint:
name: 🍸 Markdown name: 🍸 Markdown
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -31,8 +14,20 @@ jobs: ...@@ -31,8 +14,20 @@ jobs:
node-version: '12.x' node-version: '12.x'
- run: npm install -g markdownlint-cli@0.25.0 - run: npm install -g markdownlint-cli@0.25.0
- run: markdownlint '**/*.md' - run: markdownlint '**/*.md'
misspell:
name: 🥛 Check Spelling
runs-on: ubuntu-latest
steps:
- name: 🍒 Check Out
uses: actions/checkout@v2
- name: 🍅 Install
run: |
wget -O - -q https://git.io/misspell | sh -s -- -b .
- name: 🌶️ Misspell
run: |
git ls-files --empty-directory | xargs ./misspell -error
trailing-whitespace: trailing-whitespace:
name: 🌌 Trailing whitespace name: 🧋 Trailing whitespace
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -40,3 +35,20 @@ jobs: ...@@ -40,3 +35,20 @@ jobs:
run: | run: |
cd test || exit cd test || exit
sh ./check-for-trailing-whitespace.sh || exit 1 sh ./check-for-trailing-whitespace.sh || exit 1
yamllint:
name: 🍶 YAML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install yamllint
- name: 🧹 YAML Lint
run: |
# return non-zero exit code on warnings
yamllint --strict .
name: 💎 Spellchecker
on: [pull_request]
jobs:
misspell:
name: 🧹 Check Spelling
runs-on: ubuntu-latest
steps:
- name: 🍒 Check Out
uses: actions/checkout@v2
- name: 🍅 Install
run: |
wget -O - -q https://git.io/misspell | sh -s -- -b .
- name: 🌶️ Misspell
run: |
git ls-files --empty-directory | xargs ./misspell -error
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment