From 40b1a4baf77b3d1bde8625dd72d6dd11f3e43308 Mon Sep 17 00:00:00 2001 From: Denis Kolegov Date: Tue, 9 Jan 2024 10:57:54 +0100 Subject: [PATCH] move build and test workflow --- .../workflows/contracts-build-and-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename contracts/.github/workflows/build-and-test.yml => .github/workflows/contracts-build-and-test.yml (94%) diff --git a/contracts/.github/workflows/build-and-test.yml b/.github/workflows/contracts-build-and-test.yml similarity index 94% rename from contracts/.github/workflows/build-and-test.yml rename to .github/workflows/contracts-build-and-test.yml index 3712a342a..2635df0f0 100644 --- a/contracts/.github/workflows/build-and-test.yml +++ b/.github/workflows/contracts-build-and-test.yml @@ -21,7 +21,7 @@ jobs: node-version: '18' # Adjust this as needed for your project - name: Install dependencies - run: npm install + run: cd contracts && npm install - name: Install Foundry run: | @@ -32,6 +32,7 @@ jobs: - name: Generate Ethereum Private Key and Create .env File and run make run: | + cd contracts PRIVATE_KEY=$(node -e "console.log(require('crypto').randomBytes(32).toString('hex'))") echo "export PRIVATE_KEY=0x$PRIVATE_KEY" > .env echo "export RPC_URL=http://127.0.0.1:1337" >> .env