From 1df31991ddf4db72c22e711404f342cd0fc12a9c Mon Sep 17 00:00:00 2001 From: Pablo Lamela Date: Fri, 21 Jun 2024 18:35:46 +0200 Subject: [PATCH] Add Haskell Language Server check to CI --- .github/workflows/hls.yml | 20 ++++++++++++++++++++ cardano-cli/cardano-cli.cabal | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/hls.yml diff --git a/.github/workflows/hls.yml b/.github/workflows/hls.yml new file mode 100644 index 0000000000..d603b77ebc --- /dev/null +++ b/.github/workflows/hls.yml @@ -0,0 +1,20 @@ +name: "Haskell Language Server works" +on: + merge_group: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +jobs: + test-hls-works: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c + - uses: cachix/install-nix-action@daddc62a2e67d1decb56e028c9fa68344b9b7c2a + with: + nix_path: nixpkgs=channel:nixos-23.11 + - run: nix develop --accept-flake-config --command bash -c "cabal update; haskell-language-server" diff --git a/cardano-cli/cardano-cli.cabal b/cardano-cli/cardano-cli.cabal index b7117bbf97..b1a1fe106f 100644 --- a/cardano-cli/cardano-cli.cabal +++ b/cardano-cli/cardano-cli.cabal @@ -113,6 +113,7 @@ library Cardano.CLI.EraBased.Run.TextView Cardano.CLI.EraBased.Run.Transaction Cardano.CLI.Helpers + Cardano.CLI.IO.Compat Cardano.CLI.IO.Lazy Cardano.CLI.Json.Friendly Cardano.CLI.Legacy.Commands