Skip to content

Commit

Permalink
Split golden typecheck deps into their own dev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
samhh committed Dec 16, 2023
1 parent 0e3e28f commit d4d8fb9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ jobs:
key: yarn-${{ runner.os }}-${{ hashFiles('.golden/ts/yarn.lock') }}
restore-keys: |
yarn-${{ runner.os }}
- run: nix develop -c yarn install --frozen-lockfile
- run: nix develop -c yarn typecheck
- run: nix develop .#golden -c yarn install --frozen-lockfile
- run: nix develop .#golden -c yarn typecheck
29 changes: 17 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,24 @@

haskPkgs = pkgs.haskell.packages."${ghcVer}";
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cabal-install
haskell.compiler."${ghcVer}"
haskPkgs.haskell-language-server
hlint
haskPkgs.hspec-golden
stylish-haskell
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cabal-install
haskell.compiler."${ghcVer}"
haskPkgs.haskell-language-server
hlint
haskPkgs.hspec-golden
stylish-haskell
];
};

# For typechecking golden output
nodejs
yarn
];
golden = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
nodejs
yarn
];
};
};
});
}

0 comments on commit d4d8fb9

Please sign in to comment.