summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-02-13 18:25:27 +0900
committerGitHub <[email protected]>2021-02-13 18:25:27 +0900
commitc3ec5861ac4a94c78d6c0c3c510bc2b0451f5a7f (patch)
tree5831b87664bdca854a9a1fe66d215fb6a3fb4b7f /.github
parentda6c4ed169b28f9f012595b23e08c08f2f6876eb (diff)
parentc263aec74888954854a076d5a6240cffd9cc4761 (diff)
downloadmruby-c3ec5861ac4a94c78d6c0c3c510bc2b0451f5a7f.tar.gz
mruby-c3ec5861ac4a94c78d6c0c3c510bc2b0451f5a7f.zip
Merge pull request #5346 from jbampton/clean-up-linters
refactor: add the spell checker Action to the Lint Action file
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint.yml48
-rw-r--r--.github/workflows/spell-checker.yml17
2 files changed, 30 insertions, 35 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 48af6619f..e8db09bfb 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,23 +3,6 @@ name: โ„๏ธ Lint
on: [pull_request]
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:
name: ๐Ÿธ Markdown
runs-on: ubuntu-latest
@@ -31,8 +14,20 @@ 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
+ name: ๐Ÿง‹ Trailing whitespace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -40,3 +35,20 @@ jobs:
run: |
cd test || exit
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 .
diff --git a/.github/workflows/spell-checker.yml b/.github/workflows/spell-checker.yml
deleted file mode 100644
index 7e86e0198..000000000
--- a/.github/workflows/spell-checker.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-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