From 5d262d3f4c7b01248fec83d89ddbe44f2fc463dd 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 | 19 +++++++++++++++++++ cardano-cli/cardano-cli.cabal | 1 + 2 files changed, 20 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..5641fd76af --- /dev/null +++ b/.github/workflows/hls.yml @@ -0,0 +1,19 @@ +name: "Haskell Language Server works" +on: + 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 798e0cb436..1e06054938 100644 --- a/cardano-cli/cardano-cli.cabal +++ b/cardano-cli/cardano-cli.cabal @@ -115,6 +115,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