Skip to content

Commit be7271b

Browse files
Merge pull request #16 from xima-media/composer-normalize
feat: add test-composer-normalize
2 parents 29b584b + 05270b7 commit be7271b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include:
77
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/.deploy-prepare.yml'
88
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/build-php.yml'
99
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/build-node.yml'
10+
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-composer-normalize.yml'
1011
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-es-lint.yml'
1112
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-html-lint.yml'
1213
- 'https://raw.githubusercontent.com/xima-media/gitlab-templates/1.0.0/test-php-lint.yml'
@@ -30,6 +31,7 @@ include:
3031
* `build-node` ⚠️ needs configuration
3132

3233
### Stage `test`
34+
* `test-composer-normalize`
3335
* `test-es-lint` ⚠️ needs configuration
3436
* `test-html-lint` ⚠️ needs configuration
3537
* `test-php-lint`

test-composer-normalize.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
test-composer-normalize:
2+
stage: test
3+
needs: ["build-php"]
4+
script:
5+
- composer run ci:composer:normalize
6+
rules:
7+
- if: $RESET_JOB == 'true'
8+
when: never
9+
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/
10+
when: never
11+
- if: $CI_COMMIT_BRANCH == $BASE_BRANCH
12+
- if: $CI_COMMIT_AUTHOR != 'Renovate Bot <dev@t3.xima-services.net>' || $CI_COMMIT_BRANCH !~ /^renovate.*$/
13+
changes:
14+
- "composer.json"

0 commit comments

Comments
 (0)