Skip to content

Commit

Permalink
Use fix-whitespace-action
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Mar 16, 2024
1 parent 834e1ed commit eb87ffd
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/whitespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,6 @@ jobs:
whitespace:
runs-on: ubuntu-latest

env:
fix-whitespace-ver: '0.1'

steps:
- uses: actions/checkout@v4

- name: Create directory for binary
run: |
mkdir -p $HOME/.local/bin
- uses: actions/cache@v3
name: Cache the binary
id: cache
with:
path: "~/.local/bin"
key: fix-whitespace-${{ env.fix-whitespace-ver }}

- uses: haskell-actions/setup@v2
if: ${{ !steps.cache.outputs.cache-hit }}
with:
ghc-version: '9.8'
cabal-version: latest

- name: Install fix-whitespace
if: ${{ !steps.cache.outputs.cache-hit }}
run: |
cabal install --ignore-project --install-method=copy --installdir=$HOME/.local/bin fix-whitespace-${{ env.fix-whitespace-ver }}
strip $HOME/.local/bin/fix-whitespace
- name: Check Whitespace Conformance
run: |
$HOME/.local/bin/fix-whitespace --check
- uses: andreasabel/fix-whitespace-action@v1

0 comments on commit eb87ffd

Please sign in to comment.