Skip to content
Snippets Groups Projects
Commit 07788a26 authored by LIOTIER MARION's avatar LIOTIER MARION
Browse files

update CICD

parent 9c119b33
No related branches found
No related tags found
No related merge requests found
Pipeline #234592 passed with warnings
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
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