Skip to content

Commit

Permalink
build ethereum-contracts when solidity library updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hellwolf committed Apr 17, 2024
1 parent daa076c commit e824ee4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tasks/check-changeset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ if [ -n "$GITHUB_ENV" ];then
echo "Root package.json changed."
setBuildAll
fi
# if specified solidity-semantic-money folders and files changed
if grep -E "^packages/solidity-semantic-money/(src/|test/|foundry\.toml|Makefile|package\.json)" changed-files.list;then
BUILD_SOLIDITY_SEMANTIC_MONEY=1
BUILD_ETHEREUM_CONTRACTS=1
echo Solidity semantic money will be tested.
fi
# if specified ethereum-contracts folders and files changed
if grep -E "^packages/ethereum-contracts/(contracts/|scripts/|test/|truffle-config\.js|package\.json)" changed-files.list;then
BUILD_ETHEREUM_CONTRACTS=1
Expand Down Expand Up @@ -93,11 +99,6 @@ if [ -n "$GITHUB_ENV" ];then
BUILD_AUTOMATION_CONTRACTS=1
echo Automation Contracts will be tested.
fi
# if specified solidity-semantic-money folders and files changed
if grep -E "^packages/solidity-semantic-money/(src/|test/|foundry\.toml|Makefile|package\.json)" changed-files.list;then
BUILD_SOLIDITY_SEMANTIC_MONEY=1
echo Solidity semantic money will be tested.
fi

if [ "$BUILD_ETHEREUM_CONTRACTS" == 1 ] || [ "$BUILD_SDK_CORE" == 1 ] || [ "$BUILD_SDK_REDUX" == 1 ];then
echo "PR packages will be published."
Expand Down

0 comments on commit e824ee4

Please sign in to comment.