From 8d5cb1c58108c8526571870f5ddae181a39e6c48 Mon Sep 17 00:00:00 2001 From: cam-schultz Date: Thu, 5 Oct 2023 21:55:17 +0000 Subject: [PATCH] install forge in ci job --- .github/workflows/e2e.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 6221dd64..462e6c7d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -40,5 +40,13 @@ jobs: - name: Checkout awm-relayer repository uses: actions/checkout@v4 - - name: Run E2E Tests - run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego DATA_DIR=/tmp/e2e-test/data ./scripts/e2e_test.sh + - name: Install Forge and Run E2E Tests + # Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc + run: | + BASE_DIR=${XDG_CONFIG_HOME:-$HOME} + curl -L https://foundry.paradigm.xyz | bash + source $HOME/.bashrc + $BASE_DIR/.foundry/bin/foundryup + export PATH="$PATH:$BASE_DIR/.foundry/bin" + export PATH="$PATH:$GOPATH/bin" + AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego DATA_DIR=/tmp/e2e-test/data ./scripts/e2e_test.sh