Unit test job

🧪_unit-tests:
  image: node:15.1.0-slim
  stage: tests
  before_script:
    - npm install -g mocha
    - npm install -g mocha-junit-reporter
  script:
    - mocha tests.js --reporter mocha-junit-reporter
    - cat ./test-results.xml
  rules:
    - if: $CI_COMMIT_BRANCH == "main"
    - if: $CI_MERGE_REQUEST_IID    
  artifacts:
    [...]