Skip to content

Commit

Permalink
Merge pull request #241 from well-typed/fix-whitespace
Browse files Browse the repository at this point in the history
Add fix-whitespace CI job
  • Loading branch information
edsko authored Oct 30, 2024
2 parents aba2e0b + fb49f87 commit cf42c49
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 cf42c49

Please sign in to comment.