(sf) The full set of Apex tests on the task branch is automatically validated (checkOnly) against the packaging org or production org when the pull request is created. (TBD)

Note: The non-SF equivalent might be trying a local merge, compiling the source code, running the tests, and discarding the merge.