Skip to content

Commit

Permalink
fix ci (#1626)
Browse files Browse the repository at this point in the history
* try to fix hlint ci

* enable apply-refact for 9.6 and 9.8
  • Loading branch information
shayne-fletcher authored Dec 15, 2024
1 parent 7f60084 commit 3145e86
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches-ignore:
- 'ghc-next*'
- 'ghc-9.12*'
pull_request:
branches-ignore:
- 'ghc-next*'
Expand All @@ -12,7 +11,6 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
Expand All @@ -23,25 +21,22 @@ jobs:
ghc: '9.8'
- os: macOS-latest
ghc: '9.8'

steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- run: cabal install apply-refact --install-method=copy
if: matrix.ghc == '9.8' || matrix.ghc == '9.6'
- name: Get GHC libdir
id: get-ghc-libdir
run: |
echo "libdir=$(ghc --print-libdir)" >> $GITHUB_OUTPUT
run: echo "libdir=$(ghc --print-libdir)" >> $GITHUB_OUTPUT
shell: bash
- run: cabal v2-freeze --enable-tests
- uses: actions/cache@v2
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ steps.get-ghc-libdir.outputs.libdir }}-${{ hashFiles('cabal.project.freeze') }}
- run: cabal new-install apply-refact --install-method=copy
- uses: ndmitchell/neil@master
with:
hlint-arguments: src
- run: cabal run exe:hlint -- --test

0 comments on commit 3145e86

Please sign in to comment.