@@ -92,53 +92,15 @@ jobs:
9292 run : npm ci
9393
9494 - name : Install Foundry
95- shell : bash
96- run : |
97- set -e
98- curl -L https://foundry.paradigm.xyz | bash
99- # The installer may only update PATH in `~/.bashrc` (per its own output).
100- # In GitHub Actions, that file isn't sourced automatically in the current shell.
101- # shellcheck disable=SC1090
102- if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc"; fi
103-
104- # Ensure Foundry toolchain binaries are on PATH for the remainder of this step.
105- export PATH="$HOME/.foundry/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
106-
107- # Run `foundryup` from a known install location so we don't depend on shell PATH.
108- # (If `foundryup` isn't found in PATH, we currently fail with "command not found".)
109- foundryup_bin=""
110- if [ -f "$HOME/.foundry/bin/foundryup" ]; then
111- foundryup_bin="$HOME/.foundry/bin/foundryup"
112- elif [ -f "$HOME/.cargo/bin/foundryup" ]; then
113- foundryup_bin="$HOME/.cargo/bin/foundryup"
114- elif [ -f "$HOME/.local/bin/foundryup" ]; then
115- foundryup_bin="$HOME/.local/bin/foundryup"
116- fi
117-
118- if [ -n "$foundryup_bin" ]; then
119- "$foundryup_bin"
120- else
121- echo "foundryup not found after installer" >&2
122- echo "HOME=$HOME" >&2
123- echo "PATH=$PATH" >&2
124- command -v foundryup >&2 || true
125- ls -la "$HOME/.foundry/bin" >&2 || true
126- ls -la "$HOME/.cargo/bin" >&2 || true
127- ls -la "$HOME/.local/bin" >&2 || true
128- exit 1
129- fi
130-
131- # Verify toolchain binaries required by the integration tests.
132- if [ ! -x "$HOME/.foundry/bin/anvil" ] || [ ! -x "$HOME/.foundry/bin/forge" ]; then
133- echo "Required Foundry binaries missing after install" >&2
134- exit 1
135- fi
136-
137- echo "$HOME/.foundry/bin" >> $GITHUB_PATH
95+ uses : foundry-rs/foundry-toolchain@v1
96+ with :
97+ version : " stable"
98+ cache : true
13899
139100 - name : Run integration tests
140101 run : |
141102 export PATH="$HOME/.foundry/bin:$HOME/.cargo/bin:$PATH"
142103 anvil --version
104+ forge --version
143105 npm run test:integration
144106
0 commit comments