mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-18 22:30:05 +00:00
Améliore la configuration CI : simplifie les règles de déclenchement et ajoute un rapport de vérification TypeScript
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
---
|
||||
|
||||
# Select what we should cache between builds
|
||||
cache:
|
||||
paths:
|
||||
@@ -58,18 +57,17 @@ mirror_chill_zimbra_bundle:
|
||||
|
||||
rules:
|
||||
# 1) Allow manual run from GitLab UI, whatever the branch
|
||||
- if: '$CI_PIPELINE_SOURCE == "web"'
|
||||
- if: '$CI_PIPELINE_SOURCE == "web"'
|
||||
|
||||
# 2) Auto-run on commits to master or 472-zimbra-connector
|
||||
# but only if relevant files changed
|
||||
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "472-zimbra-connector"'
|
||||
changes:
|
||||
- packages/ChillZimbraBundle/**/*
|
||||
- .gitlab-ci.yml
|
||||
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "472-zimbra-connector"'
|
||||
changes:
|
||||
- packages/ChillZimbraBundle/**/*
|
||||
- .gitlab-ci.yml
|
||||
|
||||
# 3) Otherwise: never run
|
||||
- when: never
|
||||
|
||||
- when: never
|
||||
|
||||
before_script:
|
||||
- apk add --no-cache git git-subtree openssh
|
||||
@@ -166,6 +164,12 @@ lint:
|
||||
script:
|
||||
- yarn install --ignore-optional
|
||||
- npx eslint-baseline "src/**/*.{js,ts,vue}"
|
||||
- yarn vue-tsc --noEmit > vue-tsc-report.txt 2>&1 || true
|
||||
- grep -q "error" vue-tsc-report.txt && exit 2 || exit 0
|
||||
artifacts:
|
||||
expire_in: 1 day
|
||||
paths:
|
||||
- vue-tsc-report.txt
|
||||
cache:
|
||||
paths:
|
||||
- node_modules/
|
||||
@@ -208,5 +212,5 @@ release:
|
||||
script:
|
||||
- echo "running release_job"
|
||||
release:
|
||||
tag_name: '$CI_COMMIT_TAG'
|
||||
tag_name: "$CI_COMMIT_TAG"
|
||||
description: "./.changes/$CI_COMMIT_TAG.md"
|
||||
|
||||
Reference in New Issue
Block a user