From d55a74c4187837347f8edbdd034e28cfee1e9a15 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 13 Feb 2021 16:23:00 +1000 Subject: feat(CI): check for trailing whitespace Run on pull request only. Use a shell script to check for trailing whitespace in all files. Fail if trailing whitespace is found. --- .github/workflows/lint.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b2ba316b2..48af6619f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,3 +31,12 @@ jobs: node-version: '12.x' - run: npm install -g markdownlint-cli@0.25.0 - run: markdownlint '**/*.md' + trailing-whitespace: + name: ๐ŸŒŒ Trailing whitespace + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: ๐Ÿงน Check for trailing whitespace + run: | + cd test || exit + sh ./check-for-trailing-whitespace.sh || exit 1 -- cgit v1.2.3