Testing stage in GitLab pipeline
-
Hey,
is there a testing workflow for GitLab pipelines?
I'm trying to setup a testing stage on my gitlab ci/cd but nothing seem to work. -
I don't see how this is relevant to NodeBB. Are you asking a general Node question? That's not what this forum is for.
-
@pitaj Oh sorry for the confusion. No, it's not a general Node question. I just tried to run
npm test
with the exiting nodebb test suite on a gitlab runner and it doesn't seem to work.Is this even possible? Is there an existing workflow for GitLab?
-
NodeBB tests require database setup beforehand.
I recommend just checking out how NodeBB currently does it with GitHub Actions or how it was done earlier with TravisCII haven't used GitLab CI much, but I think the
services
part is pretty similar to GitHub Actions - there are some setup differences (per jobvariables
instead of per serviceenv
for example), but I think just adapting the service configuration to GitLab syntax will be better than the bash based install from TravisCI