Raise error for whitespace in files
name: Example
on: pull_request
jobs:
example:
name: Find Files with Whitespace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erictleung/find-file-whitespace@main
Fails: #1
Passes: #2
docker build -t test .
docker run -v $(pwd):/find-file-whitespace test
Motivated by: https://twitter.com/ASpittel/status/1508939056918396931
Code inspired by: https://github.com/harupy/find-trailing-whitespace