Skip to content
Snippets Groups Projects
Select Git revision
  • 4da1f6d56f82bf48e538f25f12405f0034584183
  • main default protected
  • 3-rewrite-in-typescript
  • 1.13.6
  • 1.13.5
  • 1.13.4
  • 1.13.3
  • 1.13.2
  • 1.13.1
  • 1.13.0
  • 1.12.4
  • 1.12.3
  • 1.12.2
  • 1.12.1
  • 1.12.0
  • 1.11.0
  • 1.10.1
  • 1.10.0
  • 1.9.0
  • v1.7.0
  • 1.8.0
  • v1.7.1
  • v1.6.2
23 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 1.03 KiB
    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: config
      SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8
      NPM_REGISTRY: https://it-devops-01:4873
    
    cache:
      paths:
        - node_modules/
        - docs/
    
    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 to local npm:
      stage: publish
      script:
        - echo 'strict-ssl=false\n' > .npmrc
        - echo '@br:registry=https://it-devops-01:4873/\n' >> .npmrc
        - echo '//it-devops-01:4873/:_authToken="ZMh1NzlklUTNNvt573Imgw=="' >> .npmrc
        - npm set ca null
        - cat .npmrc
        - npm publish --registry $NPM_REGISTRY