Skip to content
Snippets Groups Projects
Select Git revision
  • 18f79a8748a1ab4b9684be8c04512e730ce393c2
  • main default protected
  • 3.1.7
  • 3.1.6
  • 3.1.5
  • 3.1.4
  • 3.1.3
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 2.14.0
  • 2.13.5
  • 2.13.4
  • 2.13.3
  • 2.13.2
  • 2.13.0
  • 2.12.1
  • 2.12.0
  • 2.11.0
  • 2.10.1
  • 2.10.0
  • 2.9.1
22 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 849 B
    image: node:latest
    
    include:
      - project: 'general/templates'
        file: '/cicd/SAST-nodejs.gitlab-ci.yml'
      - project: 'general/templates'
        file: '/cicd/npm-audit.gitlab-ci.yml'
      - project: 'general/templates'
        file: '/cicd/sonarqube.gitlab-ci.yml'
    
    variables:
      SONAR_PROJECT_KEY: argos-log
      SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8
      NPM_REGISTRY: https://npm.br-edv.brnet.int
      NPM_TOKEN: 5w2Gy80rdH+2Tch0afNI6Q==
    
    
    cache:
      paths:
        - node_modules/
    
    stages:
      - build
      - test
      - quality
      - publish
    
    build:
      stage: build
      script:
        - npm install --production
    
    test:
      stage: test
      before_script:
        - npm install -g jest
      script:
        - jest
      artifacts:
        paths:
          - docs/test-report.html
          - docs/coverage/lcov.info
    
    publish:
      only:
        refs:
          - tags
      stage: publish
      script:
        - npm publish