-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
40 lines (37 loc) · 966 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
include:
# This remote project centralize our CI "golden path" https://docs.gitlab.com/ee/ci/yaml/#includefile
remote: 'https://gitlab.com/drupalspoons/composer-plugin/-/raw/master/templates/.gitlab-ci.yml'
# Override phpcs config
phpcs:
stage: test
script:
- cp -u phpcs.xml $WEB_ROOT/modules/custom
- composer phpcs -- --report-junit=junit.xml --report-full --report-summary
allow_failure: false
artifacts:
expose_as: junit
expire_in: 6 mos
paths:
- junit.xml
reports:
junit: junit.xml
# Disable stylelint
stylelint:
stage: test
script:
- yarn version
frontend:
stage: build
image: node:16.13-alpine
variables:
GIT_STRATEGY: fetch
GIT_CHECKOUT: "true"
script:
- apk add bash git openssh
- npm install
- npm run build
- 'git diff --exit-code src dist || (echo "Error: Uncommitted changes detected"; exit 1)'
artifacts:
paths:
- node_modules/
expire_in: 6 mos