Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable suapp-examples integration test on ci #161

Merged
merged 3 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/integration-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Integration examples

on:
push:
branches: [main]
pull_request:

jobs:
suapp-examples:
name: Devenv
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.21?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied it from another workflow. Do not have any strong opinion about it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to version 1.21 because of WASM/WASI support, which I imagine we'll eventually want.

id: go

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

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Run dev environment
run: docker-compose -f ./suave/e2e/docker-compose.yml up -d --build

- name: Check out suapp-examples
uses: actions/checkout@v2
with:
repository: flashbots/suapp-examples
path: suapp-examples

- name: Build suapp-examples
run: |
cd suapp-examples
forge build

- name: Run suapp-examples
run: |
cd suapp-examples
make run-integration
35 changes: 35 additions & 0 deletions suave/e2e/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: "3.8"

services:
suave-mevm:
build: ../..
command:
- --suave.dev
- --suave.eth.remote_endpoint=http://suave-enabled-chain:8545
- --suave.eth.external-whitelist=172.17.0.1
depends_on:
- suave-enabled-chain
ports:
- 8545:8545
networks:
- suave-net
suave-enabled-chain:
build: ../..
command:
- --dev
- --dev.gaslimit=30000000
- --http
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
- --keystore=/keystore/keystore
- --unlock=0xB5fEAfbDD752ad52Afb7e1bD2E40432A485bBB7F
- --password=/keystore/password.txt
ports:
- 8555:8545
volumes:
- ./suave-ex-node:/keystore
networks:
- suave-net
networks:
suave-net:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: missing newline at EOF

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"b5feafbdd752ad52afb7e1bd2e40432a485bbb7f","crypto":{"cipher":"aes-128-ctr","ciphertext":"8075ff2ed17c6cf6cd162b4bdd2926034e2067f03055990d57510e5d807ef06e","cipherparams":{"iv":"8c31b77d9518a68fda4aa6c90d62562d"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"6e55b1eea32430c4dc0b87cfc31168d552249b8ba946314e3c41dbeaeed3d125"},"mac":"5e411244fd732deb4464d247cfeb9beadc8a37558f12720c4d2ee8691436c50c"},"id":"51d12702-2276-44a9-972e-2011c56edf4e","version":3}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required once we merge #161

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing an newline at the end of the file, as well :)

Empty file.
Loading