The law (1) requires the gas installation and equipment in your home and/or block to be checked every five years. To this end, two inspections are performed: one on the installation in your home (IRI), and another on the installation in public areas (IRC).
Further details are included below:
Royal Decree 984/2015