Refine checking for trailing whitespace [skip travis][skip appveyor]

* Include tabs in checking.
* Use `git grep` to avoid including `.git` directory.
* Avoid running `grep` multiple times.
This commit is contained in:
KOBAYASHI Shuji
2021-02-14 16:07:04 +09:00
parent c3ec5861ac
commit 4203e574e3
2 changed files with 1 additions and 16 deletions
+1 -3
View File
@@ -32,9 +32,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: 🧹 Check for trailing whitespace
run: |
cd test || exit
sh ./check-for-trailing-whitespace.sh || exit 1
run: "! git grep -EIn $'[ \t]+$'"
yamllint:
name: 🍶 YAML
runs-on: ubuntu-latest