gilde-ci-cd/templates/npm/npm-test.gitlab-ci.yml

13 lines
297 B
YAML

.npm-test:
image: $NODE_IMAGE
stage: verify
variables:
ADDITIONAL_GLOBAL_PACKAGES: "karma"
before_script:
- >
if [ "$ADDITIONAL_GLOBAL_PACKAGES" != "" ]; then
npm install -g $ADDITIONAL_GLOBAL_PACKAGES
fi
script:
- "cd $FRONTEND_DIR"
- npm run test-ci