fix: resolve Foundry installation and deployment verification issues
Some checks failed
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Deploy to Testnet / notify-deployment (push) Has been cancelled
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m21s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 11s
Smart Contract Tests / test-foundry (push) Failing after 14s
Smart Contract Tests / lint-solidity (push) Successful in 12s
Smart Contract Tests / deploy-contracts (push) Failing after 1m9s

- Add foundryup command to actually install Foundry after download
- Add PATH export to Foundry test step to ensure forge is available
- This fixes the 'forge: command not found' error in CI
This commit is contained in:
aitbc
2026-04-29 11:04:11 +02:00
parent a5211afdde
commit 56bab031c1

View File

@@ -118,12 +118,14 @@ jobs:
if ! command -v forge &> /dev/null; then
curl -L https://foundry.paradigm.xyz | bash
export PATH="$HOME/.foundry/bin:$PATH"
source ~/.bashrc
foundryup
export PATH="$HOME/.foundry/bin:$PATH"
fi
forge --version
- name: Test contracts with Foundry
run: |
export PATH="$HOME/.foundry/bin:$PATH"
cd /var/lib/aitbc-workspaces/foundry/repo/contracts
# Ensure standard directories exist