From f1d194d5235dc2e7e0acb423a78f49bdc895ed3e Mon Sep 17 00:00:00 2001 From: Boris Waaub Date: Tue, 3 Feb 2026 11:24:56 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liore=20la=20configuration=20CI=20:=20s?= =?UTF-8?q?implifie=20les=20r=C3=A8gles=20de=20d=C3=A9clenchement=20et=20a?= =?UTF-8?q?joute=20un=20rapport=20de=20v=C3=A9rification=20TypeScript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68a7caaa0..29055f008 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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"