From cb12c7766eebe33ff7cafcf162f13a128bab5388 Mon Sep 17 00:00:00 2001 From: stubbsta Date: Fri, 6 Jun 2025 12:53:52 +0200 Subject: [PATCH] Add pnpm dependency installation for rln tests --- Makefile | 7 ++----- scripts/install_pnpm.sh | 8 ++++++++ scripts/install_rln_tests_dependencies.sh | 11 +++++++++++ 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100755 scripts/install_pnpm.sh create mode 100755 scripts/install_rln_tests_dependencies.sh diff --git a/Makefile b/Makefile index ae57852a5..8fd320525 100644 --- a/Makefile +++ b/Makefile @@ -112,11 +112,8 @@ ifeq (, $(shell which cargo)) curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable endif -anvil: rustup -ifeq (, $(shell which anvil 2> /dev/null)) -# Install Anvil if it's not installed - ./scripts/install_anvil.sh -endif +rln-deps: rustup + ./scripts/install_rln_tests_dependencies.sh deps: | deps-common nat-libs waku.nims diff --git a/scripts/install_pnpm.sh b/scripts/install_pnpm.sh new file mode 100755 index 000000000..33aecdfc6 --- /dev/null +++ b/scripts/install_pnpm.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Install pnpm +if ! command -v pnpm &> /dev/null; then + echo "pnpm is not installed, installing it now..." + curl -L https://unpkg.com/@pnpm/self-installer | node +fi + diff --git a/scripts/install_rln_tests_dependencies.sh b/scripts/install_rln_tests_dependencies.sh new file mode 100755 index 000000000..7b3bbd142 --- /dev/null +++ b/scripts/install_rln_tests_dependencies.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# Install Anvil +if ! command -v anvil &> /dev/null; then + ./scripts/install_anvil.sh +fi + +#Install pnpm +if ! command -v pnpm &> /dev/null; then + ./scripts/install_pnpm.sh +fi \ No newline at end of file