Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ci #1626

Merged
merged 2 commits into from
Dec 15, 2024
Merged

fix ci #1626

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 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,36 +11,32 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['9.8', '9.6', '9.4']
ghc: ['9.10', '9.8', '9.6']
include:
- os: windows-latest
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
shayne-fletcher marked this conversation as resolved.
Show resolved Hide resolved
Loading