From 98a04e77dad8cbd605adba824a6602f62a52443c 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/project-checks.yaml b/.github/workflows/project-checks.yaml index cce056bb0..727cdc65d 100644 --- a/.github/workflows/project-checks.yaml +++ b/.github/workflows/project-checks.yaml @@ -27,6 +27,12 @@ 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 ${{ github.base_ref }} -- + - name: make verify run: | make verify