From d4a4234b059f35272d5a1ea403ae119db9b71b92 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Mon, 23 Oct 2023 10:59:24 +0300 Subject: [PATCH] .github: add trailing whitespace error check. Add trailing whitespace error check to our project-checks workflow. Signed-off-by: Krisztian Litkey --- .github/workflows/project-checks.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/project-checks.yaml b/.github/workflows/project-checks.yaml index cce056bb0..efcb737fc 100644 --- a/.github/workflows/project-checks.yaml +++ b/.github/workflows/project-checks.yaml @@ -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