From 9e82e3d63de52432669931e16171f9eb8d8ba404 Mon Sep 17 00:00:00 2001 From: bpolania Date: Wed, 4 Dec 2024 14:33:19 -0800 Subject: [PATCH 01/18] Create reusable-build-integration-test-workflow.yml --- ...usable-build-integration-test-workflow.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/reusable-build-integration-test-workflow.yml diff --git a/.github/workflows/reusable-build-integration-test-workflow.yml b/.github/workflows/reusable-build-integration-test-workflow.yml new file mode 100644 index 0000000..05c2cdf --- /dev/null +++ b/.github/workflows/reusable-build-integration-test-workflow.yml @@ -0,0 +1,60 @@ +name: Build and Test + +on: + workflow_call: + inputs: + sha: + required: true + type: string + ENVIRONMENT: + required: true + type: string + +jobs: + build_and_test: + name: Build and Test + timeout-minutes: 60 + runs-on: ubuntu-latest + environment: ${{ inputs.ENVIRONMENT }} + strategy: + fail-fast: false + matrix: + node-version: [20.0.0] + + steps: + - name: Check out code + uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + with: + ref: ${{ inputs.sha }} + + - name: Setup pnpm + uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + with: + version: 8 + + - name: Setup Node.js environment + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + + - name: Install dependencies + run: | + pnpm install + + - name: Fix + run: | + pnpm fix + + - name: Test + run: | + npm run test:integration + + - name: Build + run: + pnpm build From f8043ab6c437d0b5355fd19f1f476f88762c332e Mon Sep 17 00:00:00 2001 From: bpolania Date: Wed, 4 Dec 2024 15:05:21 -0800 Subject: [PATCH 02/18] Create reusable-build-unit-test-workflow.yml --- .../reusable-build-unit-test-workflow.yml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/reusable-build-unit-test-workflow.yml diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml new file mode 100644 index 0000000..4b372ec --- /dev/null +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -0,0 +1,61 @@ +name: Build and Test + +on: + workflow_call: + inputs: + sha: + required: true + type: string + ENVIRONMENT: + required: true + type: string + +jobs: + build_and_test: + name: Build and Test + timeout-minutes: 60 + runs-on: ubuntu-latest + ## Example to fix envrionment secret not passing in: https://github.com/AllanOricil/workflow-template-bug/blob/master/.github/workflows/workflow-template-fix-without-required-secret.yml + environment: ${{ inputs.ENVIRONMENT }} + strategy: + fail-fast: false + matrix: + node-version: [20.0.0] + + steps: + - name: Check out code + uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + with: + ref: ${{ inputs.sha }} + + - name: Setup pnpm + uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + with: + version: 8 + + - name: Setup Node.js environment + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + + - name: Install dependencies + run: | + pnpm install + + - name: Fix + run: | + pnpm fix + + - name: Test + run: | + npm run test:unit + + - name: Build + run: + pnpm build From 71b7c2b0a6bc38c0da3868a3f0342f4116f730e9 Mon Sep 17 00:00:00 2001 From: bpolania Date: Wed, 4 Dec 2024 16:16:16 -0800 Subject: [PATCH 03/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 4b372ec..69ebfa9 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -54,7 +54,7 @@ jobs: - name: Test run: | - npm run test:unit + pnpm run test:unit - name: Build run: From abf32ff5f70cade560ed48c914aa063b0dd00d00 Mon Sep 17 00:00:00 2001 From: bpolania Date: Wed, 4 Dec 2024 20:24:02 -0800 Subject: [PATCH 04/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 69ebfa9..0b80b1f 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -54,7 +54,7 @@ jobs: - name: Test run: | - pnpm run test:unit + pnpm test:unit - name: Build run: From ba62a636adc55ded4b16915c5ea34c8f6571b346 Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 13:39:33 -0800 Subject: [PATCH 05/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 0b80b1f..c60391a 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -54,7 +54,7 @@ jobs: - name: Test run: | - pnpm test:unit + pnpm test - name: Build run: From c2a8a4bc040ceb6e9cf6a3505b62ba61bb6b6623 Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:15:51 -0800 Subject: [PATCH 06/18] Debug Commit --- ...usable-build-integration-test-workflow.yml | 32 +++++++++++++++++++ .../reusable-build-unit-test-workflow.yml | 32 +++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/.github/workflows/reusable-build-integration-test-workflow.yml b/.github/workflows/reusable-build-integration-test-workflow.yml index 05c2cdf..e3d7613 100644 --- a/.github/workflows/reusable-build-integration-test-workflow.yml +++ b/.github/workflows/reusable-build-integration-test-workflow.yml @@ -9,6 +9,27 @@ on: ENVIRONMENT: required: true type: string + secrets: + RPC_PROVIDER_URL: + required: true + WALLET_PRIVATE_KEY: + required: true + TEST_WALLET_ADDRESS: + required: true + SEPOLIA_RPC_PROVIDER_URL: + required: true + TEST_SEPOLIA_RPC_PROVIDER_URL: + required: true + SEPOLIA_WALLET_PRIVATE_KEY: + required: true + SEPOLIA_TEST_WALLET_ADDRESS: + required: true + STORY_TEST_NET_RPC_PROVIDER_URL: + required: true + STORY_TEST_NET_WALLET_PRIVATE_KEY: + required: true + STORY_TEST_NET_TEST_WALLET_ADDRESS: + required: true jobs: build_and_test: @@ -20,6 +41,17 @@ jobs: fail-fast: false matrix: node-version: [20.0.0] + env: + RPC_PROVIDER_URL: ${{ secrets.RPC_PROVIDER_URL }} + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} + SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.SEPOLIA_RPC_PROVIDER_URL }} + TEST_SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.TEST_SEPOLIA_RPC_PROVIDER_URL }} + SEPOLIA_WALLET_PRIVATE_KEY: ${{ secrets.SEPOLIA_WALLET_PRIVATE_KEY }} + SEPOLIA_TEST_WALLET_ADDRESS: ${{ secrets.SEPOLIA_TEST_WALLET_ADDRESS }} + STORY_TEST_NET_RPC_PROVIDER_URL: ${{ secrets.STORY_TEST_NET_RPC_PROVIDER_URL }} + STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} + STORY_TEST_NET_TEST_WALLET_ADDRESS: ${{ secrets.STORY_TEST_NET_TEST_WALLET_ADDRESS }} steps: - name: Check out code diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index c60391a..36f8b92 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -9,6 +9,27 @@ on: ENVIRONMENT: required: true type: string + secrets: + RPC_PROVIDER_URL: + required: true + WALLET_PRIVATE_KEY: + required: true + TEST_WALLET_ADDRESS: + required: true + SEPOLIA_RPC_PROVIDER_URL: + required: true + TEST_SEPOLIA_RPC_PROVIDER_URL: + required: true + SEPOLIA_WALLET_PRIVATE_KEY: + required: true + SEPOLIA_TEST_WALLET_ADDRESS: + required: true + STORY_TEST_NET_RPC_PROVIDER_URL: + required: true + STORY_TEST_NET_WALLET_PRIVATE_KEY: + required: true + STORY_TEST_NET_TEST_WALLET_ADDRESS: + required: true jobs: build_and_test: @@ -21,6 +42,17 @@ jobs: fail-fast: false matrix: node-version: [20.0.0] + env: + RPC_PROVIDER_URL: ${{ secrets.RPC_PROVIDER_URL }} + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} + SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.SEPOLIA_RPC_PROVIDER_URL }} + TEST_SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.TEST_SEPOLIA_RPC_PROVIDER_URL }} + SEPOLIA_WALLET_PRIVATE_KEY: ${{ secrets.SEPOLIA_WALLET_PRIVATE_KEY }} + SEPOLIA_TEST_WALLET_ADDRESS: ${{ secrets.SEPOLIA_TEST_WALLET_ADDRESS }} + STORY_TEST_NET_RPC_PROVIDER_URL: ${{ secrets.STORY_TEST_NET_RPC_PROVIDER_URL }} + STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} + STORY_TEST_NET_TEST_WALLET_ADDRESS: ${{ secrets.STORY_TEST_NET_TEST_WALLET_ADDRESS }} steps: - name: Check out code From 966650685dfa495e0b0aecf1791ce5519f427da2 Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:29:02 -0800 Subject: [PATCH 07/18] Update reusable-build-unit-test-workflow.yml --- .../workflows/reusable-build-unit-test-workflow.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 36f8b92..608f860 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -10,22 +10,14 @@ on: required: true type: string secrets: - RPC_PROVIDER_URL: - required: true WALLET_PRIVATE_KEY: required: true TEST_WALLET_ADDRESS: required: true - SEPOLIA_RPC_PROVIDER_URL: - required: true - TEST_SEPOLIA_RPC_PROVIDER_URL: - required: true SEPOLIA_WALLET_PRIVATE_KEY: required: true SEPOLIA_TEST_WALLET_ADDRESS: required: true - STORY_TEST_NET_RPC_PROVIDER_URL: - required: true STORY_TEST_NET_WALLET_PRIVATE_KEY: required: true STORY_TEST_NET_TEST_WALLET_ADDRESS: @@ -43,14 +35,10 @@ jobs: matrix: node-version: [20.0.0] env: - RPC_PROVIDER_URL: ${{ secrets.RPC_PROVIDER_URL }} WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} - SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.SEPOLIA_RPC_PROVIDER_URL }} - TEST_SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.TEST_SEPOLIA_RPC_PROVIDER_URL }} SEPOLIA_WALLET_PRIVATE_KEY: ${{ secrets.SEPOLIA_WALLET_PRIVATE_KEY }} SEPOLIA_TEST_WALLET_ADDRESS: ${{ secrets.SEPOLIA_TEST_WALLET_ADDRESS }} - STORY_TEST_NET_RPC_PROVIDER_URL: ${{ secrets.STORY_TEST_NET_RPC_PROVIDER_URL }} STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} STORY_TEST_NET_TEST_WALLET_ADDRESS: ${{ secrets.STORY_TEST_NET_TEST_WALLET_ADDRESS }} From 56b5b00b770c801139dbe3ab3145eb3628224ce3 Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:34:41 -0800 Subject: [PATCH 08/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 608f860..5b02340 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -12,16 +12,10 @@ on: secrets: WALLET_PRIVATE_KEY: required: true - TEST_WALLET_ADDRESS: - required: true SEPOLIA_WALLET_PRIVATE_KEY: required: true - SEPOLIA_TEST_WALLET_ADDRESS: - required: true STORY_TEST_NET_WALLET_PRIVATE_KEY: required: true - STORY_TEST_NET_TEST_WALLET_ADDRESS: - required: true jobs: build_and_test: From 5dd7e85ce9e36fe2e3dafc99aef47891ee64b7ba Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:40:04 -0800 Subject: [PATCH 09/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 5b02340..6cf80b1 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -30,11 +30,8 @@ jobs: node-version: [20.0.0] env: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} SEPOLIA_WALLET_PRIVATE_KEY: ${{ secrets.SEPOLIA_WALLET_PRIVATE_KEY }} - SEPOLIA_TEST_WALLET_ADDRESS: ${{ secrets.SEPOLIA_TEST_WALLET_ADDRESS }} STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} - STORY_TEST_NET_TEST_WALLET_ADDRESS: ${{ secrets.STORY_TEST_NET_TEST_WALLET_ADDRESS }} steps: - name: Check out code From 06b3b6d49a326929c8222bca738942cc11c075c6 Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:43:23 -0800 Subject: [PATCH 10/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 6cf80b1..6db3f27 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -12,8 +12,6 @@ on: secrets: WALLET_PRIVATE_KEY: required: true - SEPOLIA_WALLET_PRIVATE_KEY: - required: true STORY_TEST_NET_WALLET_PRIVATE_KEY: required: true From 5b109fc495a7a17ca5d297edf85aafd5c51f839f Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:43:38 -0800 Subject: [PATCH 11/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 6db3f27..9764a6c 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -28,7 +28,6 @@ jobs: node-version: [20.0.0] env: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - SEPOLIA_WALLET_PRIVATE_KEY: ${{ secrets.SEPOLIA_WALLET_PRIVATE_KEY }} STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} steps: From e7fa44abd1262fbe65a6fbfd9d59466b2f872297 Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:49:15 -0800 Subject: [PATCH 12/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 9764a6c..ba78d71 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -10,8 +10,6 @@ on: required: true type: string secrets: - WALLET_PRIVATE_KEY: - required: true STORY_TEST_NET_WALLET_PRIVATE_KEY: required: true @@ -27,7 +25,6 @@ jobs: matrix: node-version: [20.0.0] env: - WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} steps: From 2a0d881b1767dbf08ae8fa76f83cdb818d647b67 Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 14:54:58 -0800 Subject: [PATCH 13/18] Update reusable-build-unit-test-workflow.yml --- .github/workflows/reusable-build-unit-test-workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index ba78d71..c4bbdec 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -10,7 +10,7 @@ on: required: true type: string secrets: - STORY_TEST_NET_WALLET_PRIVATE_KEY: + WALLET_PRIVATE_KEY: required: true jobs: @@ -25,7 +25,7 @@ jobs: matrix: node-version: [20.0.0] env: - STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} steps: - name: Check out code From 127cb9e1f1358af94032dea71be16629342887bd Mon Sep 17 00:00:00 2001 From: bpolania Date: Thu, 5 Dec 2024 15:18:33 -0800 Subject: [PATCH 14/18] Update reusable-build-integration-test-workflow.yml --- ...usable-build-integration-test-workflow.yml | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/.github/workflows/reusable-build-integration-test-workflow.yml b/.github/workflows/reusable-build-integration-test-workflow.yml index e3d7613..3cf70bc 100644 --- a/.github/workflows/reusable-build-integration-test-workflow.yml +++ b/.github/workflows/reusable-build-integration-test-workflow.yml @@ -10,26 +10,8 @@ on: required: true type: string secrets: - RPC_PROVIDER_URL: - required: true WALLET_PRIVATE_KEY: required: true - TEST_WALLET_ADDRESS: - required: true - SEPOLIA_RPC_PROVIDER_URL: - required: true - TEST_SEPOLIA_RPC_PROVIDER_URL: - required: true - SEPOLIA_WALLET_PRIVATE_KEY: - required: true - SEPOLIA_TEST_WALLET_ADDRESS: - required: true - STORY_TEST_NET_RPC_PROVIDER_URL: - required: true - STORY_TEST_NET_WALLET_PRIVATE_KEY: - required: true - STORY_TEST_NET_TEST_WALLET_ADDRESS: - required: true jobs: build_and_test: @@ -42,16 +24,7 @@ jobs: matrix: node-version: [20.0.0] env: - RPC_PROVIDER_URL: ${{ secrets.RPC_PROVIDER_URL }} WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} - SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.SEPOLIA_RPC_PROVIDER_URL }} - TEST_SEPOLIA_RPC_PROVIDER_URL: ${{ secrets.TEST_SEPOLIA_RPC_PROVIDER_URL }} - SEPOLIA_WALLET_PRIVATE_KEY: ${{ secrets.SEPOLIA_WALLET_PRIVATE_KEY }} - SEPOLIA_TEST_WALLET_ADDRESS: ${{ secrets.SEPOLIA_TEST_WALLET_ADDRESS }} - STORY_TEST_NET_RPC_PROVIDER_URL: ${{ secrets.STORY_TEST_NET_RPC_PROVIDER_URL }} - STORY_TEST_NET_WALLET_PRIVATE_KEY: ${{ secrets.STORY_TEST_NET_WALLET_PRIVATE_KEY }} - STORY_TEST_NET_TEST_WALLET_ADDRESS: ${{ secrets.STORY_TEST_NET_TEST_WALLET_ADDRESS }} steps: - name: Check out code From b9c5d3c53b2df921bf44234e1391e5b788cb4b61 Mon Sep 17 00:00:00 2001 From: bpolania Date: Tue, 10 Dec 2024 09:18:48 -0800 Subject: [PATCH 15/18] TEST_WALLET_ADDRESS added --- .github/workflows/reusable-build-integration-test-workflow.yml | 3 +++ .github/workflows/reusable-build-unit-test-workflow.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/reusable-build-integration-test-workflow.yml b/.github/workflows/reusable-build-integration-test-workflow.yml index 3cf70bc..c8d992e 100644 --- a/.github/workflows/reusable-build-integration-test-workflow.yml +++ b/.github/workflows/reusable-build-integration-test-workflow.yml @@ -12,6 +12,8 @@ on: secrets: WALLET_PRIVATE_KEY: required: true + TEST_WALLET_ADDRESS: + required: true jobs: build_and_test: @@ -25,6 +27,7 @@ jobs: node-version: [20.0.0] env: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} steps: - name: Check out code diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index c4bbdec..a37cda7 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -12,6 +12,8 @@ on: secrets: WALLET_PRIVATE_KEY: required: true + TEST_WALLET_ADDRESS: + required: true jobs: build_and_test: @@ -26,6 +28,7 @@ jobs: node-version: [20.0.0] env: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} steps: - name: Check out code From 10a39e8a90eb620802be89203f7512341769e7ee Mon Sep 17 00:00:00 2001 From: bpolania Date: Tue, 10 Dec 2024 10:06:49 -0800 Subject: [PATCH 16/18] Pre-PR commit --- ...reusable-build-integration-test-workflow.yml | 14 +++----------- .../reusable-build-unit-test-workflow.yml | 17 ++++------------- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/reusable-build-integration-test-workflow.yml b/.github/workflows/reusable-build-integration-test-workflow.yml index c8d992e..0661642 100644 --- a/.github/workflows/reusable-build-integration-test-workflow.yml +++ b/.github/workflows/reusable-build-integration-test-workflow.yml @@ -46,23 +46,15 @@ jobs: node-version: ${{ matrix.node-version }} cache: pnpm - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly - - name: Install dependencies - run: | - pnpm install + run: pnpm install - name: Fix - run: | - pnpm fix + run: pnpm fix - name: Test run: | npm run test:integration - name: Build - run: - pnpm build + run: pnpm build diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index a37cda7..97e1dc6 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -47,23 +47,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: pnpm - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly - - name: Install dependencies - run: | - pnpm install + run: pnpm install - name: Fix - run: | - pnpm fix + run: pnpm fix - name: Test - run: | - pnpm test + run: pnpm test - name: Build - run: - pnpm build + run: pnpm build From 2e894545cf91d54aa0f2ef7881ab878624dcf2fd Mon Sep 17 00:00:00 2001 From: bpolania Date: Tue, 10 Dec 2024 10:09:24 -0800 Subject: [PATCH 17/18] Removed old comments --- .github/workflows/reusable-build-test-workflow.yml | 1 - .github/workflows/reusable-build-unit-test-workflow.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/reusable-build-test-workflow.yml b/.github/workflows/reusable-build-test-workflow.yml index 97e1dc6..0796b89 100644 --- a/.github/workflows/reusable-build-test-workflow.yml +++ b/.github/workflows/reusable-build-test-workflow.yml @@ -20,7 +20,6 @@ jobs: name: Build and Test timeout-minutes: 60 runs-on: ubuntu-latest - ## Example to fix envrionment secret not passing in: https://github.com/AllanOricil/workflow-template-bug/blob/master/.github/workflows/workflow-template-fix-without-required-secret.yml environment: ${{ inputs.ENVIRONMENT }} strategy: fail-fast: false diff --git a/.github/workflows/reusable-build-unit-test-workflow.yml b/.github/workflows/reusable-build-unit-test-workflow.yml index 97e1dc6..0796b89 100644 --- a/.github/workflows/reusable-build-unit-test-workflow.yml +++ b/.github/workflows/reusable-build-unit-test-workflow.yml @@ -20,7 +20,6 @@ jobs: name: Build and Test timeout-minutes: 60 runs-on: ubuntu-latest - ## Example to fix envrionment secret not passing in: https://github.com/AllanOricil/workflow-template-bug/blob/master/.github/workflows/workflow-template-fix-without-required-secret.yml environment: ${{ inputs.ENVIRONMENT }} strategy: fail-fast: false From 22f176d50378cc896f1996547cdca1717501f561 Mon Sep 17 00:00:00 2001 From: bpolania Date: Tue, 10 Dec 2024 10:19:40 -0800 Subject: [PATCH 18/18] Update reusable-build-integration-test-workflow.yml --- .github/workflows/reusable-build-integration-test-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-build-integration-test-workflow.yml b/.github/workflows/reusable-build-integration-test-workflow.yml index 0661642..afda415 100644 --- a/.github/workflows/reusable-build-integration-test-workflow.yml +++ b/.github/workflows/reusable-build-integration-test-workflow.yml @@ -57,4 +57,4 @@ jobs: npm run test:integration - name: Build - run: pnpm build + run: pnpm build