Update Ruby from 2.7 to 3.0 to use on build/test

We need to continuously keep updating the build/test environments of the repository itself.

Relates to gitlab-org&5149 (closed) (initiative upgrading Ruby 2.7 to 3.0 in GitLab product)

Prerequisites

TODO

cf.

Edited by Takuya Noguchi