From 2c7940f9d8f9e49648cbb7286ba536d7e633a0b8 Mon Sep 17 00:00:00 2001 From: Louis Thibault Date: Thu, 1 Feb 2024 16:28:25 -0500 Subject: [PATCH] Add integration testing to CI pipeline. --- .github/workflows/integration-examples.yml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/integration-examples.yml diff --git a/.github/workflows/integration-examples.yml b/.github/workflows/integration-examples.yml new file mode 100644 index 0000000000..0ef28bca32 --- /dev/null +++ b/.github/workflows/integration-examples.yml @@ -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.21 + 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/devenv/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