Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Broken Links Inspector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dmytro Bogatov
Broken Links Inspector
Commits
2426ad2c
Verified
Commit
2426ad2c
authored
4 years ago
by
Dmytro Bogatov
Browse files
Options
Downloads
Patches
Plain Diff
Fix YAML.
parent
c82b7f3f
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#7461
passed with warnings
4 years ago
Stage: build
Stage: test
Stage: security
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+31
-20
31 additions, 20 deletions
.gitlab-ci.yml
with
31 additions
and
20 deletions
.gitlab-ci.yml
+
31
−
20
View file @
2426ad2c
...
...
@@ -4,21 +4,35 @@ default:
-
docker
stages
:
-
build
-
test
-
security
-
release
build
:
stage
:
build
script
:
-
npm install
-
npm run build
artifacts
:
paths
:
-
node_modules
-
dist
expire_in
:
1 hour
lint
:
stage
:
test
dependencies
:
-
build
script
:
-
npm install
-
npm run lint
allow_failure
:
true
test
:
stage
:
test
dependencies
:
-
build
script
:
-
npm install
-
npm run coverage
coverage
:
'
/All
files[^|]*\|[^|]*\s+([\d\.]+)/'
artifacts
:
...
...
@@ -31,6 +45,8 @@ test:
release
:
stage
:
release
dependencies
:
-
build
script
:
-
|
cat <<EOT >> .npmrc
...
...
@@ -51,8 +67,6 @@ release:
echo "This version has already been published"
exit 0
fi
-
npm install
-
npm run build
-
sed -i "s#\"$PACKAGE\"#\"@dbogatov/$PACKAGE\"#g" package.json
-
npm publish
-
|
...
...
@@ -68,6 +82,7 @@ release:
code_navigation
:
stage
:
release
dependencies
:
[]
script
:
-
npm install -g @sourcegraph/lsif-tsc
-
apk add --update git
...
...
@@ -87,34 +102,30 @@ include:
# ADJUSTMENTS
gemnasium-dependency_scanning
:
dependencies
:
[]
.security-template
:
&security-def
dependencies
:
-
build
stage
:
security
gemnasium-dependency_scanning
:
<<
:
*security-def
nodejs-scan-sast
:
stage
:
security
dependencies
:
[]
<<
:
*security-def
before_script
:
-
npm install
-
npm run build
-
ls
license_scanning
:
dependencies
:
[]
stage
:
security
<<
:
*security-def
retire-js-dependency_scanning
:
dependencies
:
[]
stage
:
security
<<
:
*security-def
secret_detection
:
dependencies
:
[]
stage
:
security
<<
:
*security-def
secrets-sast
:
dependencies
:
[]
stage
:
security
<<
:
*security-def
tslint-sast
:
dependencies
:
[]
stage
:
security
<<
:
*security-def
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