Skip to content
Snippets Groups Projects
Unverified Commit eb87ffdf authored by Phil de Joux's avatar Phil de Joux
Browse files

Use fix-whitespace-action

parent 834e1ed6
No related branches found
No related tags found
No related merge requests found
...@@ -9,35 +9,6 @@ jobs: ...@@ -9,35 +9,6 @@ jobs:
whitespace: whitespace:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
fix-whitespace-ver: '0.1'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: andreasabel/fix-whitespace-action@v1
- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment