Vuejs/laravel - cypress environment on CI/CD

Hi everyone,

I have a project that uses vuejs and laravel.

I have started to do tests on cypress. I use cy.factories to populate my local database on local tests. I also test my localhost for UI.

How can I do it on CI/CD?
How to have a database dedicated to CI/CD (since I reset it before each test) with PHP for backend, and, make http requests within that test environment to test UI.

The help is appreciated.

Thank you