From 4203e574e3360df15a7bd7d5a29f311aa5f7caf6 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sun, 14 Feb 2021 16:07:04 +0900 Subject: 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. --- .github/workflows/lint.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e8db09bfb..474890010 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 -- cgit v1.2.3