From 325eab9da4945780766d4e4ca269105816c370d2 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 30 Dec 2021 20:25:44 +0100 Subject: [PATCH] Add simple whitespace check --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f220aaa1d72a21..b3a2a3ef02b34b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,6 +54,17 @@ jobs: git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qE '(ssl|hashlib|hmac|^.github)' && echo '::set-output name=run_ssl_tests::true' || true fi + lint: + name: 'Linter' + runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} + steps: + - uses: actions/checkout@v2 + - name: "Fetch base" + run: git fetch origin --depth=1 $GITHUB_BASE_REF + - name: "Check for whitespace errors" + run: git diff --check origin/$GITHUB_BASE_REF + check_generated_files: name: 'Check if generated files are up to date' runs-on: ubuntu-latest