Skip to content

Commit

Permalink
Add CI check for trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed Aug 8, 2022
1 parent 8b624d6 commit 34a1b8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/haskell.yml
Expand Up @@ -23,6 +23,16 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Traing whitespace check
if: matrix.os != 'windows-latest'
run: |
offenders="$(git grep "\s$" -- *.hs *.c *.h *.nix *.yml)" || true;
if [ -n "${offenders}" ]; then
echo -e "Fix trailing whitespace in:\n"
echo -n "${offenders}"
exit 1
fi
- name: Install pkgconfiglite (Windows)
if: matrix.os == 'windows-latest'
run: choco install -y pkgconfiglite --allow-empty-checksums
Expand Down

0 comments on commit 34a1b8c

Please sign in to comment.