Skip to content

Commit

Permalink
Add simple whitespace check
Browse files Browse the repository at this point in the history
  • Loading branch information
Erlend E. Aasland committed Dec 30, 2021
1 parent 8d7644f commit 325eab9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 325eab9

Please sign in to comment.