From 902097b7dd95ac061ddb7c733e3cd8bf3a68dcc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Tue, 17 Sep 2024 12:23:40 +0200 Subject: [PATCH] [BUGFIX] Fix parallel lint in GitLab CI (#1456) --- .gitlab/pipeline/.gitlab-ci.yml | 1 + .gitlab/pipeline/jobs/.composer-update.yml | 3 +++ .gitlab/pipeline/jobs/php-lint-php7.4.yml | 1 + .gitlab/pipeline/jobs/php-lint-php8.0.yml | 1 + .gitlab/pipeline/jobs/php-lint-php8.1.yml | 1 + .gitlab/pipeline/jobs/php-lint-php8.2.yml | 1 + .gitlab/pipeline/jobs/php-lint-php8.3.yml | 1 + 7 files changed, 9 insertions(+) create mode 100644 .gitlab/pipeline/jobs/.composer-update.yml diff --git a/.gitlab/pipeline/.gitlab-ci.yml b/.gitlab/pipeline/.gitlab-ci.yml index c6c5c4b..711eebe 100644 --- a/.gitlab/pipeline/.gitlab-ci.yml +++ b/.gitlab/pipeline/.gitlab-ci.yml @@ -7,6 +7,7 @@ stages: - test include: + - '/.gitlab/pipeline/jobs/.composer-update.yml' - '/.gitlab/pipeline/jobs/.default.yml' - '/.gitlab/pipeline/jobs/.default-frontend.yml' - '/.gitlab/pipeline/jobs/.variables.yml' diff --git a/.gitlab/pipeline/jobs/.composer-update.yml b/.gitlab/pipeline/jobs/.composer-update.yml new file mode 100644 index 0000000..63bee39 --- /dev/null +++ b/.gitlab/pipeline/jobs/.composer-update.yml @@ -0,0 +1,3 @@ +.composer-update: + before_script: + - composer update --no-progress diff --git a/.gitlab/pipeline/jobs/php-lint-php7.4.yml b/.gitlab/pipeline/jobs/php-lint-php7.4.yml index 27af32b..3de2ee3 100644 --- a/.gitlab/pipeline/jobs/php-lint-php7.4.yml +++ b/.gitlab/pipeline/jobs/php-lint-php7.4.yml @@ -1,4 +1,5 @@ php-lint-php7.4: + extends: .composer-update image: ghcr.io/sbuerk/demo-core-testing-php74:latest stage: lint needs: [ ] diff --git a/.gitlab/pipeline/jobs/php-lint-php8.0.yml b/.gitlab/pipeline/jobs/php-lint-php8.0.yml index 9e6d043..0485908 100644 --- a/.gitlab/pipeline/jobs/php-lint-php8.0.yml +++ b/.gitlab/pipeline/jobs/php-lint-php8.0.yml @@ -1,4 +1,5 @@ php-lint-php8.0: + extends: .composer-update image: ghcr.io/sbuerk/demo-core-testing-php80:latest stage: lint needs: [ ] diff --git a/.gitlab/pipeline/jobs/php-lint-php8.1.yml b/.gitlab/pipeline/jobs/php-lint-php8.1.yml index 127f9f7..1c70cef 100644 --- a/.gitlab/pipeline/jobs/php-lint-php8.1.yml +++ b/.gitlab/pipeline/jobs/php-lint-php8.1.yml @@ -1,4 +1,5 @@ php-lint-php8.1: + extends: .composer-update image: ghcr.io/sbuerk/demo-core-testing-php81:latest stage: lint needs: [ ] diff --git a/.gitlab/pipeline/jobs/php-lint-php8.2.yml b/.gitlab/pipeline/jobs/php-lint-php8.2.yml index c3c8fb0..dec469e 100644 --- a/.gitlab/pipeline/jobs/php-lint-php8.2.yml +++ b/.gitlab/pipeline/jobs/php-lint-php8.2.yml @@ -1,4 +1,5 @@ php-lint-php8.2: + extends: .composer-update image: ghcr.io/sbuerk/demo-core-testing-php82:latest stage: lint needs: [ ] diff --git a/.gitlab/pipeline/jobs/php-lint-php8.3.yml b/.gitlab/pipeline/jobs/php-lint-php8.3.yml index 5e59289..537fbb5 100644 --- a/.gitlab/pipeline/jobs/php-lint-php8.3.yml +++ b/.gitlab/pipeline/jobs/php-lint-php8.3.yml @@ -1,4 +1,5 @@ php-lint-php8.3: + extends: .composer-update image: ghcr.io/sbuerk/demo-core-testing-php83:latest stage: lint needs: [ ]