X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=.github%2Fworkflows%2Fhaskell.yml;h=cd8a95da2274745ffc767605f73ddd936bed2469;hb=38bf0b76556e21891319a2e2af92efe8ff4bf5b7;hp=87c9763e2b165e62fb82fb2daa61e8955e67ca12;hpb=2d99d48db3865ad7f5916fea82ad4ce8b6a695f4;p=lsp-test.git diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 87c9763..cd8a95d 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -9,17 +9,26 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: actions/setup-haskell@v1 + with: + ghc-version: '8.6.5' + cabal-version: '3.0' + - run: cabal update - name: Install HIE run: | - apt upgrade ghc cabal-install 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: 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 + cabal test