Skip to content

Commit

Permalink
Add fix-whitespace CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej authored and edsko committed Oct 30, 2024
1 parent aba2e0b commit fb49f87
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/fix-whitespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Check end of line and end of file whitespace
name: Whitespace
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
whitespace:
name: "Check whitespace"
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download fix-whitespace
run: |
curl -L -o fix-whitespace https://github.com/agda/fix-whitespace/releases/download/v0.1/fix-whitespace-0.1-linux.binary
chmod a+x fix-whitespace
- name: Check whitespace
run: |
shopt -s globstar
./fix-whitespace --verbose --check **/*.hs

0 comments on commit fb49f87

Please sign in to comment.