X-Git-Url: https://git.lukelau.me/?a=blobdiff_plain;f=.github%2Fworkflows%2Fhaskell.yml;h=e702893d87118f9f3ccdd253311b72f3c3b9b7fa;hb=588e085d12244b795441c0e17b71a561ac5db80b;hp=32c54b90c649ce802d73806751cd3a0c55d68e61;hpb=100a827c557ab534b4f67cdac6bee88e3cf00999;p=lsp-test.git diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 32c54b9..e702893 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -9,18 +9,24 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Install dependencies - run: cabal install --only-dependencies --enable-tests + - uses: actions/setup-haskell@v1 + with: + ghc-version: '8.6.5' + cabal-version: '3.0' + - run: cabal update - name: Install HIE run: | pushd $HOME git clone https://github.com/haskell/haskell-ide-engine --recurse-submodules cd haskell-ide-engine - cabal v2-install hie - cabal v2-install hoogle + cabal install hie + cabal install hoogle + export PATH=$PATH:$HOME/.cabal/bin hoogle generate popd - name: Build - run: cabal v2-build + run: cabal build - name: Run tests - run: cabal v2-test + run: | + echo $PATH + cabal test