ci: remove manual hardhat-ignition installation causing dependency conflict
Some checks failed
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Failing after 17s
Smart Contract Tests / test-solidity (map[name:zk-circuits path:apps/zk-circuits]) (push) Failing after 47s
Smart Contract Tests / lint-solidity (push) Failing after 11s
Some checks failed
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Failing after 17s
Smart Contract Tests / test-solidity (map[name:zk-circuits path:apps/zk-circuits]) (push) Failing after 47s
Smart Contract Tests / lint-solidity (push) Failing after 11s
The workflow was manually installing @nomicfoundation/hardhat-ignition@^0.15.16 which requires @nomicfoundation/hardhat-verify@^2.1.0, but the package.json already has compatible versions (hardhat-verify@^3.0.13 and hardhat-ignition-ethers@^3.1.1). Removing the manual installation allows npm to resolve dependencies correctly.
This commit is contained in:
@@ -56,12 +56,6 @@ jobs:
|
||||
# Install
|
||||
npm install --legacy-peer-deps 2>/dev/null || npm install
|
||||
|
||||
# Fix missing Hardhat dependencies for aitbc-token
|
||||
if [[ "${{ matrix.project.name }}" == "aitbc-token" ]]; then
|
||||
echo "Installing missing Hardhat dependencies..."
|
||||
npm install --no-save "@nomicfoundation/hardhat-ignition@^0.15.16" "@nomicfoundation/ignition-core@^0.15.15"
|
||||
fi
|
||||
|
||||
# Compile
|
||||
if [[ -f "hardhat.config.js" ]] || [[ -f "hardhat.config.ts" ]]; then
|
||||
npx hardhat compile
|
||||
@@ -125,12 +119,6 @@ jobs:
|
||||
echo "=== Linting $project ==="
|
||||
cd "$project"
|
||||
npm install --legacy-peer-deps 2>/dev/null || npm install
|
||||
|
||||
# Fix missing Hardhat dependencies and formatting for aitbc-token
|
||||
if [[ "$project" == "packages/solidity/aitbc-token" ]]; then
|
||||
echo "Installing missing Hardhat dependencies..."
|
||||
npm install --no-save "@nomicfoundation/hardhat-ignition@^0.15.16" "@nomicfoundation/ignition-core@^0.15.15"
|
||||
fi
|
||||
|
||||
if node -e "const pkg=require('./package.json'); process.exit(pkg.scripts && pkg.scripts.lint ? 0 : 1)"; then
|
||||
npm run lint
|
||||
|
||||
Reference in New Issue
Block a user