Restore unit test in pipeline

This commit is contained in:
Boris Waaub
2026-04-09 10:27:00 +02:00
parent fa2c1454d1
commit ac1ae2a3c6

View File

@@ -1,4 +1,5 @@
---
# Select what we should cache between builds
cache:
paths:
@@ -57,17 +58,18 @@ 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
@@ -97,12 +99,10 @@ build:
stage: Composer install
image: chill/base-image:8.3-edge
variables:
COMPOSER_MEMORY_LIMIT: 3G
before_script:
- composer config -g cache-dir "$(pwd)/.cache"
script:
- composer install --optimize-autoloader --no-ansi --no-interaction --no-progress
- php bin/console cache:clear
cache:
paths:
- .cache/
@@ -110,15 +110,12 @@ build:
expire_in: 1 day
paths:
- vendor/
- var/
code_style:
stage: Tests
image: chill/base-image:8.3-edge
script:
- php-cs-fixer fix --dry-run -v --show-progress=none
dependencies:
- build
cache:
paths:
- .cache/
@@ -136,8 +133,6 @@ phpstan_tests:
- bin/console cache:clear --env=dev
script:
- composer exec phpstan -- analyze --memory-limit=3G
dependencies:
- build
cache:
paths:
- .cache/
@@ -153,8 +148,6 @@ rector_tests:
- bin/console cache:clear --env=dev
script:
- composer exec rector -- process --dry-run
dependencies:
- build
cache:
paths:
- .cache/
@@ -173,15 +166,9 @@ lint:
script:
- yarn install --ignore-optional
- npx eslint-baseline "src/**/*.{js,ts,vue}"
dependencies:
- build
cache:
paths:
- node_modules/
artifacts:
expire_in: 1 day
paths:
- vendor/
vue_tsc:
stage: Tests
image: node:20-alpine
@@ -203,7 +190,6 @@ vue_tsc:
expire_in: 1 day
paths:
- vue-tsc-report.txt
---
# psalm_tests:
# stage: Tests
# image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
@@ -229,8 +215,6 @@ unit_tests:
- php bin/console doctrine:fixtures:load -n --env=test
script:
- composer exec phpunit -- --colors=never --exclude-group dbIntensive,openstack-integration
dependencies:
- build
artifacts:
expire_in: 1 day
paths:
@@ -244,5 +228,5 @@ release:
script:
- echo "running release_job"
release:
tag_name: "$CI_COMMIT_TAG"
tag_name: '$CI_COMMIT_TAG'
description: "./.changes/$CI_COMMIT_TAG.md"