Skip to content

Commit eb36d54

Browse files
committed
test before push
1 parent f1b9fbb commit eb36d54

3 files changed

Lines changed: 33 additions & 2 deletions

File tree

.github/workflows/build-flow-emulator.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- v0
7-
- nialexsan/mainnet-fork-test
87

98
# Manual trigger, with a flag to decide if we also push
109
workflow_dispatch:
@@ -18,9 +17,35 @@ env:
1817
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/flow-emulator-fork
1918

2019
jobs:
20+
test:
21+
name: E2E Mainnet Fork Tests
22+
runs-on: ubuntu-latest
23+
24+
permissions:
25+
contents: write
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
with:
31+
submodules: recursive
32+
token: ${{ secrets.GH_PAT }}
33+
34+
- name: Install Flow CLI
35+
run: |
36+
curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/v2.16.0/install.sh | bash
37+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
38+
39+
- name: Install flow dependencies
40+
run: flow deps install
41+
42+
- name: Run e2e mainnet fork tests
43+
run: ./local/e2e_mainnet_fork.sh
44+
2145
build:
2246
name: Build Mainnet Fork Emulator Image
2347
runs-on: ubuntu-latest
48+
needs: test
2449

2550
permissions:
2651
contents: read

Dockerfile.mainnet-fork

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ EXPOSE 3569 8888
2323

2424
# Runtime: start emulator forked from mainnet.
2525
# The fork state is fetched from access.mainnet.nodes.onflow.org at startup.
26-
#ENTRYPOINT ["flow", "emulator", "--fork", "mainnet", "--fork-height", "147329485", "--persist=false"]
2726
ENTRYPOINT ["flow", "emulator", "--fork", "mainnet", "--persist=false"]

flow.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,13 @@
10921092
"type": "file",
10931093
"location": "local/emulator-account.pkey"
10941094
}
1095+
},
1096+
"mainnet-fork-pyusd0-donor": {
1097+
"address": "24263c125b7770e0",
1098+
"key": {
1099+
"type": "file",
1100+
"location": "local/emulator-account.pkey"
1101+
}
10951102
}
10961103
},
10971104
"deployments": {

0 commit comments

Comments
 (0)