Install foundry if you don't have one:
# install foundry
curl -L https://foundry.paradigm.xyz | bash
foundryupCompile and run tests:
yarn
yarn testDeploy
forge script scripts/Deploy.s.sol:Deploy --private-key $PRIVATE_KEY --broadcast --legacy --rpc-url $RPC_URL --ffi                   
forge script scripts/Deploy.s.sol:Deploy --sig 'sync()' --private-key $PRIVATE_KEY --broadcast --legacy --rpc-url $RPC_URL --ffi