Skip to content

Instantly share code, notes, and snippets.

@suru-dissanaike
Created May 19, 2020 18:36
Show Gist options
  • Select an option

  • Save suru-dissanaike/83b7dca8213496496a3040baf6cd7268 to your computer and use it in GitHub Desktop.

Select an option

Save suru-dissanaike/83b7dca8213496496a3040baf6cd7268 to your computer and use it in GitHub Desktop.
image: node:12.16
cache:
untracked: true
key: "$CI_COMMIT_REF_NAME"
paths:
- node_modules/
stages:
- install
- static-code-analysis
- dynamic-code-analysis
install:
stage: install
script:
- npm install
jshint:
stage: static-code-analysis
allow_failure: true
script:
- npm run jshint
jscpd:
stage: static-code-analysis
allow_failure: true
script:
- npm run jscpd
test_dynamic:
stage: dynamic-code-analysis
script:
- npm run test
coverage: /All files\s*\|\s*([\d\.]+)/
artifacts:
when: always
reports:
junit: ./junit.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment