-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(contracts): fix a deploy error in the hardhat task (#1702)
* fix(contracts): fix a deploy error in the hardhat task * ci: add a workflow to validate a hardhat tasks
- Loading branch information
Showing
3 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Hardhat Tasks | ||
|
||
on: | ||
push: | ||
branches: [dev] | ||
pull_request: | ||
|
||
jobs: | ||
hardhat-tasks: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
|
||
- name: Install | ||
run: | | ||
pnpm install --frozen-lockfile --prefer-offline | ||
- name: Build | ||
run: | | ||
pnpm run build | ||
- name: Run hardhat fork | ||
run: | | ||
cd contracts | ||
pnpm run hardhat & | ||
sleep 5 | ||
- name: Download zkeys | ||
run: | | ||
pnpm download-zkeys:test | ||
- name: hardhat tasks | ||
run: | | ||
cd contracts | ||
cp ./deploy-config-example.json ./deploy-config.json | ||
pnpm deploy:localhost | ||
pnpm deploy-poll:localhost | ||
- name: Stop Hardhat | ||
if: always() | ||
run: kill $(lsof -t -i:8545) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters