Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
arwer13 committed Nov 23, 2023
1 parent d30611c commit e403a7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/scratch-deploy-local.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
name: Do scratch deployment on local anvil node
name: Scratch deploy on local clean anvil

on:
pull_request:
branches: [master, develop, "feat/ci-scratcy-deploy"]

jobs:
do-scratch-deploy:
name: Assert deployed contracts bytecode
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Froundy
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Start anvil
run: anvil &
- name: Start anvil in background
run: anvil --accounts 20 --mnemonic "test test test test test test test test test test test junk" &

- name: Setup node.js version
uses: actions/setup-node@v4
Expand Down Expand Up @@ -51,8 +50,5 @@ jobs:
steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
steps.cache-node-modules.outputs.cache-hit != 'true'
- name: Run JS linters
run: yarn lint:js

- name: Run deploy scripts
- name: Run local deploy script
run: bash scripts/scratch/dao-local-deploy.sh
6 changes: 6 additions & 0 deletions docs/scratch-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ Run the node with the command:
anvil -p 8545 --auto-impersonate --gas-price 0 --base-fee 0 --chain-id 1337 --mnemonic "test test test test test test test test test test test junk"
```

or just

```shell
anvil
```

### Hardhat node

> NB: Hardhat node configuration is set in `hardhat.config.js` under `hardhat: { `.
Expand Down

0 comments on commit e403a7a

Please sign in to comment.