Skip to content

Commit eb87ffd

Browse files
committed
Use fix-whitespace-action
1 parent 834e1ed commit eb87ffd

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

.github/workflows/whitespace.yml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,6 @@ jobs:
99
whitespace:
1010
runs-on: ubuntu-latest
1111

12-
env:
13-
fix-whitespace-ver: '0.1'
14-
1512
steps:
1613
- uses: actions/checkout@v4
17-
18-
- name: Create directory for binary
19-
run: |
20-
mkdir -p $HOME/.local/bin
21-
22-
- uses: actions/cache@v3
23-
name: Cache the binary
24-
id: cache
25-
with:
26-
path: "~/.local/bin"
27-
key: fix-whitespace-${{ env.fix-whitespace-ver }}
28-
29-
- uses: haskell-actions/setup@v2
30-
if: ${{ !steps.cache.outputs.cache-hit }}
31-
with:
32-
ghc-version: '9.8'
33-
cabal-version: latest
34-
35-
- name: Install fix-whitespace
36-
if: ${{ !steps.cache.outputs.cache-hit }}
37-
run: |
38-
cabal install --ignore-project --install-method=copy --installdir=$HOME/.local/bin fix-whitespace-${{ env.fix-whitespace-ver }}
39-
strip $HOME/.local/bin/fix-whitespace
40-
41-
- name: Check Whitespace Conformance
42-
run: |
43-
$HOME/.local/bin/fix-whitespace --check
14+
- uses: andreasabel/fix-whitespace-action@v1

0 commit comments

Comments
 (0)