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 d4a4234
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: |
echo "Git fetch..."
git fetch origin ${{ github.base_ref }}
echo "Git diff-index..."
git diff-index --check ${{ github.base_ref }} --
- name: make verify
run: |
make verify
Expand Down

0 comments on commit d4a4234

Please sign in to comment.