Skip to content
Snippets Groups Projects

Pipeline fix

Merged Lars Mikkel Lødeng Nilsen requested to merge pipeline-fix into dev
4 files
+ 324
32
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 63
23
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/pipeline/#customization
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
image: node:latest
stages:
- build
- test
- deploy
- review
- dast
- staging
- canary
- production
- incremental rollout 10%
- incremental rollout 25%
- incremental rollout 50%
- incremental rollout 100%
- performance
- cleanup
sast:
- install
- lint_and_format
- build
- test
- security_scan
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
install:
stage: install
script:
- npm install
artifacts:
paths:
- node_modules/
format-code:
stage: lint_and_format
script:
- npm run format
lint-code:
stage: lint_and_format
script:
- npm run lint
type-check:
stage: build
script:
- npm run type-check
- npm run build
unit-tests:
stage: test
script:
- npm run test:unit
test:e2e:
image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
stage: test
script:
- npm ci --cache .npm --prefer-offline
- npx cypress verify
- npm run test:e2e
dependencies:
- install
test-coverage:
stage: test
script:
- npm run test:coverage
include:
- template: Auto-DevOps.gitlab-ci.yml
- template: SAST.gitlab-ci.yml
sast:
stage: security_scan
script:
- echo "Running SAST..."
Loading