Skip to content
Snippets Groups Projects
Commit 05da8e62 authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Updated ci to add install npm dependencies set to javascript testing and linting

parent 2f0abacd
No related branches found
No related tags found
1 merge request!403Wdfn 761 - Use @wma/wdfn-vue-components to implement the USWDSCheckbox and USWDSAlert components
......@@ -11,6 +11,12 @@ stages:
# it appears this is necessary whenever there is a never rule
- when: on_success
.install_npm_dependencies:
before_script:
- cd assets
- npm config set -- '//code.usgs.gov/api/v4/packages/npm/:_authToken' "${CI_JOB_TOKEN}"
- npm install
python_unit_test:
extends: .base_rules
image: public.ecr.aws/bitnami/python:3.8
......@@ -53,12 +59,12 @@ python_lint:
- "wdfn-server/waterdata/**/*.py"
javascript_test:
extends: .base_rules
extends:
- .base_rules
- .install_npm_dependencies
image: public.ecr.aws/bitnami/node:16
stage: test
script:
- cd assets
- npm install
- npm run test
artifacts:
reports:
......@@ -77,12 +83,12 @@ javascript_test:
when: on_success
static_asset_lint:
extends: .base_rules
extends:
- .base_rules
- .install_npm_dependencies
image: public.ecr.aws/bitnami/node:16
stage: test
script:
- cd assets
- npm install
- npm run lint
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
......
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