From ae06140b19ce55a42157e4bc3bc48b8c3e652b55 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 6 Nov 2024 16:28:28 -0500 Subject: [PATCH] Add foundry to e2e test --- .github/workflows/cannon.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/cannon.yml b/.github/workflows/cannon.yml index 549c7c92590ce..59c5fa9de1df4 100644 --- a/.github/workflows/cannon.yml +++ b/.github/workflows/cannon.yml @@ -205,6 +205,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + - name: Create directories run: | mkdir -p packages/contracts-bedrock/{artifacts,forge-artifacts,cache} @@ -222,6 +225,28 @@ jobs: name: prestate-artifacts path: op-program/bin + # Add Go installation since op-e2e tests are in Go + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.21" + + # Install any required Go dependencies + - name: Install Go dependencies + run: | + go mod download + + # Debug step to verify forge installation and environment + - name: Debug environment + run: | + echo "Foundry version:" + forge --version + echo "Go version:" + go version + echo "Directory structure:" + ls -R packages/contracts-bedrock/ + ls -R op-program/bin/ + - name: Run cannon tests working-directory: op-e2e run: |