Skip to content
Snippets Groups Projects
Commit c053fc68 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add unit test

parent 46a0a9f6
No related branches found
No related tags found
1 merge request!23Updates
......@@ -12,6 +12,7 @@ stages:
- init
- node-image
- build
- test
- publish
default:
......@@ -26,9 +27,12 @@ Init:
artifacts:
paths:
- node_modules
- example/node_modules
image: ${DEVOPS_REGISTRY}usgs/node:16
script:
- npm ci
- cd example
- npm ci
stage: init
####
......@@ -83,10 +87,18 @@ Build Angular:
- Init
script:
- cd example
- npm ci
- npm run build
stage: build
Lint Angular:
image: ${DEVOPS_REGISTRY}usgs/node:16
needs:
- Init
script:
- cd example
- npm run lint
stage: build
Lint Project:
image: ${DEVOPS_REGISTRY}usgs/node:16
needs:
......@@ -95,6 +107,24 @@ Lint Project:
- npm run lint
stage: build
####
# Stage: Test
####
Angular Unit Tests:
artifacts:
paths:
- example/coverage/example
reports:
junit: example/junit.xml
image: ${DEVOPS_REGISTRY}usgs/node:16
needs:
- Init
script:
- cd example
- npm run test
stage: test
####
# Stage: Publish
####
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment