-
Clayton, Brandon Scott authoredClayton, Brandon Scott authored
.gitlab-ci.yml 1.68 KiB
image: ${CI_REGISTRY}/devops/images/usgs/node:lts
# Do not run for merge requests
workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH
stages:
- init
- build
- test
- publish
default:
tags:
- nshmp
####
# Stage: init
####
Init:
artifacts:
paths:
- node_modules
- example/node_modules
script:
- npm ci
- cd example
- npm ci
stage: init
####
# Stage: Build
####
Audit:
allow_failure: true
needs: []
script:
- npm audit
stage: build
Audit Angular:
allow_failure: true
needs: []
script:
- cd example
- npm audit
stage: build
Build Angular:
needs:
- Init
script:
- cd example
- npm run build
stage: build
Lint Angular:
needs:
- Init
script:
- cd example
- npm run lint
stage: build
Lint Project:
needs: