summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorJohn Bampton <[email protected]>2021-02-13 16:23:00 +1000
committerJohn Bampton <[email protected]>2021-02-13 16:37:46 +1000
commitd55a74c4187837347f8edbdd034e28cfee1e9a15 (patch)
tree8633cea9ea49d12fc2c4595e27beadfa3e9610db /.github
parent8e01fc89336811d4200a2017e229b1b2a1b23e8f (diff)
downloadmruby-d55a74c4187837347f8edbdd034e28cfee1e9a15.tar.gz
mruby-d55a74c4187837347f8edbdd034e28cfee1e9a15.zip
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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint.yml9
1 files changed, 9 insertions, 0 deletions
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 [email protected]
- 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