Skip to content

Commit

Permalink
[ci] Check whitespace on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ricab committed Dec 3, 2024
1 parent e6e06ab commit 5d824d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/actions/whitespace/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Whitespace
description: Run Whitespace steps

runs:
using: composite
steps:
- name: Check for bad whitespace changes
shell: bash
run: |
set -e -o pipefail
# On pull requests, HEAD^1 will always be the merge base
git diff --check HEAD^1
3 changes: 3 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
with:
fetch-depth: 2

- name: Check whitespace
uses: ./.github/actions/whitespace

- name: Lint the code
uses: ./.github/actions/lint

Expand Down

0 comments on commit 5d824d7

Please sign in to comment.