'Junit test gitlab ci cd for nextjs

This question is for a school related team project!

So for a school project I work in a team as the infrastructure guy.

Part of the project is a nextjs app and we need to use Junit tests.

I really want to run there junit test in the gitlab ci cd (preferably with docker) before deploying the application. Is there anyone with experience on how the .gitlab-ci.yml should look like to make this work.

Any information is greatly appreciated.

Note: I do not have any experience with nextjs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source