summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml43
1 files changed, 36 insertions, 7 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ed1682b05..474890010 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,13 +3,6 @@ name: โ„๏ธ Lint
on: [pull_request]
jobs:
- yamllint:
- name: ๐Ÿถ YAML
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: ๐Ÿงน YAML Lint
- uses: ibiqlik/action-yamllint@v3
markdownlint:
name: ๐Ÿธ Markdown
runs-on: ubuntu-latest
@@ -21,3 +14,39 @@ jobs:
node-version: '12.x'
- run: npm install -g [email protected]
- 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:
+ name: ๐Ÿง‹ Trailing whitespace
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: ๐Ÿงน Check for trailing whitespace
+ run: "! git grep -EIn $'[ \t]+$'"
+ 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 .