Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waterdataui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
Internet of Water
waterdataui
Commits
05da8e62
Commit
05da8e62
authored
2 years ago
by
Bucknell, Mary S.
Browse files
Options
Downloads
Patches
Plain Diff
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
!403
Wdfn 761 - Use @wma/wdfn-vue-components to implement the USWDSCheckbox and USWDSAlert components
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-6
12 additions, 6 deletions
.gitlab-ci.yml
with
12 additions
and
6 deletions
.gitlab-ci.yml
+
12
−
6
View file @
05da8e62
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment