Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mth-select-taxonomy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetaboHUB
web-components
mth-select-taxonomy
Commits
07788a26
Commit
07788a26
authored
6 months ago
by
LIOTIER MARION
Browse files
Options
Downloads
Patches
Plain Diff
update CICD
parent
9c119b33
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#234592
passed with warnings
6 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+49
-8
49 additions, 8 deletions
.gitlab-ci.yml
with
49 additions
and
8 deletions
.gitlab-ci.yml
+
49
−
8
View file @
07788a26
include
:
-
project
:
'
metabohub/web-components/mth-cicd'
ref
:
1.0.
3
ref
:
1.0.
5
file
:
'
/templates/npm.gitlab-ci.yml'
# TESTS -----------------------
.pre_stage_tests
:
image
:
node:20.14
stage
:
tests
eslint-code-quality
:
extends
:
.pre_stage_tests
allow_failure
:
true
script
:
-
echo "==================================";
-
echo "[info] run eslint code quality on the 'src' directectory ";
-
test -d node_modules || npm install
-
npm run lint:coverage
artifacts
:
when
:
always
paths
:
-
code-quality-report.html
expire_in
:
1 week
test
:
extends
:
.pre_stage_tests
stage
:
tests
script
:
-
echo "==================================";
-
echo "[info] run test:unit";
-
test -d node_modules || npm install
-
npm run test:unit
# DEPLOY --------------------------
.publish
:
stage
:
deploy
image
:
node:20.14
variables
:
CI_DEBUG_TRACE
:
"
false"
before_script
:
-
apt-get update && apt-get install -y git default-jre
-
npm install
-
test -d node_modules || npm install
-
npm run build
test:install
:
image
:
node:
18
stage
:
test
pages
:
image
:
node:
20.14
stage
:
deploy
script
:
-
npm install
-
test -d node_modules || npm install
-
npm run build-storybook
-
rm -rf public
-
mkdir public
-
cp -r storybook-static/* public
artifacts
:
paths
:
-
public
expire_in
:
1 week
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