-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (32 loc) · 912 Bytes
/
Copy pathdeploy-test.yml
File metadata and controls
39 lines (32 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy test
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
deploy-test:
name: Deploy script to local
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
- name: Run Forge anvil
run: |
anvil --fork-url https://cloudflare-eth.com &
sleep 10
- name: Run Forge scripts
run: |
forge script --broadcast --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --sig 'run()' script/DeployLocal.s.sol:DeployLocal