Skip to content

Commit

Permalink
.github: add trailing whitespace error check.
Browse files Browse the repository at this point in the history
Add trailing whitespace error check to our project-checks workflow.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Oct 23, 2023
1 parent c96ed9b commit f71b195
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/project-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Check trailing whitespace errors
if: ${{ github.event_name == 'pull_request' }}
run: |
git fetch origin ${{ github.base_ref }}
git diff-index --check origin/${{ github.base_ref }} -- || {
echo "This PR introduces whitespace errors. Please fix them."
exit 1
}
- name: make verify
run: |
make verify
Expand Down

0 comments on commit f71b195

Please sign in to comment.