Install foundry if you don't have one:
# install foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
Compile and run tests:
yarn
yarn test
Deploy
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