title: What should be the .gitlab-ci.yml file that activates Gitlab to build a project and run tests?
body: <p>I have a Gradle Java 11 project that resides into Gitlab.
  I wanted to introduce <code>gitlab-ci.yml</code> to force Gitlab to build a project and run tests on each push to a remote branch.</p>
  
  <p>What should it look like?</p>
  
  <p>I'm pretty sure that a similar question already has been asked but I couldn't find it, so I appreciate your help.</p>