Add SQL test files to trailing whitespace CI check

In commit 1f807153 we added a CI check for trailing whitespaces over
our source code files (.c and .h).

This commit add SQL test files (.sql and .sql.in) to this check.
This commit is contained in:
Fabrízio de Royes Mello 2022-11-16 16:34:53 -03:00
parent 3749953e97
commit b1742969d0

View File

@ -53,7 +53,7 @@ jobs:
- name: Check trailing whitespace
if: always()
run: |
find . -name '*.[ch]' -exec perl -pi -e 's/[ \t]+$//' {} +
find . -type f -regex '.*\.\(c\|h\|sql\|sql\.in\)$' -exec perl -pi -e 's/[ \t]+$//' {} +
git diff --exit-code
- name: Check code formatting