X-Git-Url: https://git.lukelau.me/?a=blobdiff_plain;f=.github%2Fworkflows%2Fhaskell.yml;h=907b3bf765342496bc573bd2685e445f4abb0bfd;hb=a262b90b6df2b3aff0fd23019390f83f16d7a75f;hp=32c54b90c649ce802d73806751cd3a0c55d68e61;hpb=100a827c557ab534b4f67cdac6bee88e3cf00999;p=lsp-test.git diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 32c54b9..907b3bf 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -9,18 +9,27 @@ 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 + git clone https://github.com/mpickering/haskell-ide-engine --recurse-submodules cd haskell-ide-engine - cabal v2-install hie - cabal v2-install hoogle + git checkout hie-bios + cabal install hie + cabal install hoogle + export PATH=$PATH:$HOME/.cabal/bin hoogle generate popd + - name: Install JS Language Server + run: npm install javascript-typescript-langserver - name: Build - run: cabal v2-build - - name: Run tests - run: cabal v2-test + run: cabal build + - name: Test + run: | + export PATH=$PATH:$HOME/.cabal/bin:$(npm bin) + cabal test