include:
    - project: "operator-ict/devops/gitlab-ci-pipeline"
      file:
          - '/npm/golemio-module-cache.yml'
          - '/npm/publish.yml'

stages:
    - test
    - deploy

run_tests:
    stage: test
    image: node:20.12.2-alpine
    script:
        - npm install --ignore-scripts --progress=false
        # Audit production dependencies for HIGH vulnerabilities
        - npm audit --omit dev --audit-level high
        - npm run test
    tags:
        - docker
    rules:
        - when: always
