From e0d33a9c2bb40210e77a4018b8e454c8cda6d700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 23 Mar 2023 13:11:14 +0100 Subject: [PATCH] update ci for new gitlab + removes unsupported tasks --- .gitlab-ci.yml | 83 ++++++-------------------------------------------- 1 file changed, 10 insertions(+), 73 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e759072e..d813d900 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,74 +1,11 @@ +include: + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'lint/lint7.3.yml' + - project: 'ldc-web/shared-ci' + ref: 'main' + file: 'security/security7.3.yml' + stages: - - Security - - CodingStandards - - Builds - -composer-security: - stage: Security - image: $CI_REGISTRY/service-web-lab/ldc-web-images-docker/ldcweb-qa:php7.3-1.0 - script: - - local-php-security-checker --format=json --path=./composer.lock > composer-security-checker-report.json - artifacts: - when: on_failure - expose_as: 'composer-security-checker' - paths: - - composer-security-checker-report.json - allow_failure: true - needs: [] - -npm-security: - stage: Security - image: node:17.9.1 - before_script: - - npm install --location=global audit-ci@^6 - script: - - audit-ci -p npm -o json > npm-security-checker-report.json - artifacts: - when: on_failure - expose_as: 'npm-security-checker' - paths: - - npm-security-checker-report.json - allow_failure: true - needs: [] - -phpcs: - stage: CodingStandards - image: $CI_REGISTRY/service-web-lab/ldc-web-images-docker/ldcweb-qa:php7.3-1.0 - before_script: - - composer config gitlab-token.gitlab.com $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD - - composer install - cache: - paths: - - vendor/ - script: - - vendor/bin/phpcs --report=junit --report-file=phpcs-report.xml - artifacts: - when: on_failure - expose_as: 'phpcs' - paths: - - phpcs-report.xml - reports: - junit: phpcs-report.xml - allow_failure: false - needs: - - composer-security - - npm-security - -front-build: - stage: Builds - image: node:17.9.1 - before_script: - - npm install - cache: - paths: - - node_modules/ - script: - - npm run prod > front-build-report.json - artifacts: - when: on_failure - expose_as: 'front-build-report' - paths: - - front-build-report.json - allow_failure: false - needs: - - phpcs + - lint + - security