From 11e13f5a41febc061fb1a89bbebced577250ddce Mon Sep 17 00:00:00 2001 From: "Rodrigo Q. Saramago" Date: Thu, 20 Oct 2022 20:32:36 -0300 Subject: [PATCH] Replace npm by yarn --- test/externalTests/gp2.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/externalTests/gp2.sh b/test/externalTests/gp2.sh index 1676d2b78..13b8bed3e 100755 --- a/test/externalTests/gp2.sh +++ b/test/externalTests/gp2.sh @@ -31,12 +31,12 @@ BINARY_TYPE="$1" BINARY_PATH="$(realpath "$2")" SELECTED_PRESETS="$3" -function compile_fn { npm run build; } -function test_fn { npm test; } +function compile_fn { yarn run build; } +function test_fn { yarn test; } function gp2_test { - local repo="https://github.com/gnosis/gp-v2-contracts.git" + local repo="https://github.com/cowprotocol/contracts.git" local ref_type=branch local ref=main local config_file="hardhat.config.ts" @@ -67,11 +67,11 @@ function gp2_test force_hardhat_compiler_binary "$config_file" "$BINARY_TYPE" "$BINARY_PATH" force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")" "$config_var" force_hardhat_unlimited_contract_size "$config_file" "$config_var" - npm install + yarn # New hardhat release breaks GP2 tests, and since GP2 repository has been archived, we are pinning hardhat # to the previous stable version. See https://github.com/ethereum/solidity/pull/13485 - npm install hardhat@2.10.2 + yarn add hardhat@2.10.2 # Some dependencies come with pre-built artifacts. We want to build from scratch. rm -r node_modules/@gnosis.pm/safe-contracts/build/