Add Haskell Language Server check to CI #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Haskell Language Server works" | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: read | ||
jobs: | ||
test-hls-works: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
- name: Install Nix with good defaults | ||
uses: input-output-hk/install-nix-action@v20 | ||
with: | ||
extra_nix_config: | | ||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= | ||
substituters = https://cache.iog.io/ https://cache.nixos.org/ | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Cachix install Nix | ||
uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Open nix environment | ||
uses: rrbutani/use-nix-shell-action@v1 | ||
- name: Update dependencies | ||
run: cabal update; cabal freeze | ||
- name: Cache hie-bios folder | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/hie-bios | ||
key: ${{ runner.os }}-${{ghc --version | grep -oE '[^ ]+$'}}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }} | ||
Check failure on line 37 in .github/workflows/hls.yml GitHub Actions / Haskell Language Server worksInvalid workflow file
|
||
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- | ||
- name: Test HLS works | ||
run: haskell-language-server |