Skip to content
Snippets Groups Projects

Update index.test.js, examples/all-options.js, examples/log-to-file.js,...

Merged Sigmund, Dominik requested to merge master into main
5 files
+ 251
2998
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 8
20
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
- npm install
script:
- jest
artifacts:
@@ -41,10 +22,17 @@ test:
- docs/test-report.html
- docs/coverage/lcov.info
audit:
stage: test
script:
- npm audit
publish:
only:
refs:
- tags
stage: publish
script:
- npm install --production
- npm publish
Loading