File tree Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change 9
9
whitespace :
10
10
runs-on : ubuntu-latest
11
11
12
- env :
13
- fix-whitespace-ver : ' 0.1'
14
-
15
12
steps :
16
13
- 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
You can’t perform that action at this time.
0 commit comments