From b554ad85e6dd342581189df96da71ee32243e6a9 Mon Sep 17 00:00:00 2001 From: John Ky Date: Wed, 25 Jan 2023 21:14:02 -0800 Subject: [PATCH] Remove hlint from nix CI --- .github/workflows/check-hlint.yml | 31 +++++++++++++++++++++++++++++++ nix/pkgs.nix | 5 ----- nix/workbench/shell.nix | 1 - 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/check-hlint.yml diff --git a/.github/workflows/check-hlint.yml b/.github/workflows/check-hlint.yml new file mode 100644 index 00000000000..9613f864c7a --- /dev/null +++ b/.github/workflows/check-hlint.yml @@ -0,0 +1,31 @@ +name: Check HLint + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + + steps: + + - name: Install Nix + uses: cachix/install-nix-action@v18 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + experimental-features = nix-command flakes + allow-import-from-derivation = true + substituters = https://cache.nixos.org https://hydra.iohk.io + trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + + - uses: actions/checkout@v2 + + - name: Run hlint + run: | + nix build '.#checks/hlint') diff --git a/nix/pkgs.nix b/nix/pkgs.nix index dc3e8c9761e..d9fab84c191 100644 --- a/nix/pkgs.nix +++ b/nix/pkgs.nix @@ -11,11 +11,6 @@ final: prev: with final; { cabal = haskell-nix.cabal-install.${compiler-nix-name}; - hlint = haskell-nix.tool compiler-nix-name "hlint" { - version = "3.2.7"; - index-state = "2022-12-11T00:00:00Z"; - }; - ghcid = haskell-nix.tool compiler-nix-name "ghcid" { version = "0.8.7"; index-state = "2022-12-11T00:00:00Z"; diff --git a/nix/workbench/shell.nix b/nix/workbench/shell.nix index 1df2d32f7a7..d1043646897 100644 --- a/nix/workbench/shell.nix +++ b/nix/workbench/shell.nix @@ -101,7 +101,6 @@ in project.shellFor { sqlite-interactive tmux pkgs.git - pkgs.hlint pkgs.moreutils pkgs.pstree pkgs.time