From cae73abfaa14a3b9d783e4a24b56958e4269a768 Mon Sep 17 00:00:00 2001 From: blockchainguyy Date: Tue, 10 Oct 2023 19:04:54 +0530 Subject: [PATCH] add: test-without-compile script to be used in github test action --- .github/workflows/test.yaml | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ed6968c4..433ecfd2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -39,4 +39,5 @@ jobs: fi - name: Test - run: npm run test + # Running test-without-compile as artifacts already generated in build command + run: npm run test-without-compile diff --git a/package.json b/package.json index b82554ad..e633309c 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "main": "index.js", "scripts": { "test": "npx hardhat test", + "test-without-compile": "npx hardhat test --no-compile", "build": "npx hardhat clean && npx hardhat compile && rm -rf dist && mkdir dist && cp -r artifacts/contracts/** dist", "lint": "solhint 'contracts/**/*.sol' && eslint 'scripts/**/*.js' && eslint 'test/*.js'", "prettier": "prettier --write 'contracts/**/*.sol' 'scripts/**/*.js' 'test/*.js' '*.js' 'package.json' '.solhint.json' '.prettierrc'",