[CI] run npm ci which cleans installs a project

parent 0d90ff5b
Pipeline #6720 failed with stages
in 11 minutes and 51 seconds
...@@ -33,6 +33,7 @@ compile: ...@@ -33,6 +33,7 @@ compile:
script: script:
- nix --extra-experimental-features "nix-command flakes" run .#compile - nix --extra-experimental-features "nix-command flakes" run .#compile
- nix --extra-experimental-features "nix-command flakes" run .#compile
test: test:
stage: test stage: test
...@@ -46,6 +47,7 @@ test: ...@@ -46,6 +47,7 @@ test:
- .spago/ - .spago/
script: script:
- nix --extra-experimental-features "nix-command flakes" run .#compile
- nix --extra-experimental-features "nix-command flakes" run .#test-ps - nix --extra-experimental-features "nix-command flakes" run .#test-ps
- nix-collect-garbage --delete-older-than 14d - nix-collect-garbage --delete-older-than 14d
...@@ -60,6 +60,17 @@ ...@@ -60,6 +60,17 @@
in in
{ {
packages = rec { packages = rec {
ci = pkgs.writeShellApplication {
name = "install";
runtimeInputs = dependencies;
text = ''
set -e
echo "Installing JS Dependencies (CI)"
# https://docs.npmjs.com/cli/v9/commands/npm-ci
npm ci
'';
};
install = pkgs.writeShellApplication { install = pkgs.writeShellApplication {
name = "install"; name = "install";
runtimeInputs = dependencies; runtimeInputs = dependencies;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment