mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-23 04:56:12 +01:00
[FEATURE] Add frontend linting to GitLab CI
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
parent
a62d9ae58d
commit
68ec441b95
1 changed files with 25 additions and 0 deletions
|
@ -23,6 +23,19 @@ variables:
|
||||||
before_script:
|
before_script:
|
||||||
- bash .gitlab/build/docker_install.sh > /dev/null
|
- bash .gitlab/build/docker_install.sh > /dev/null
|
||||||
|
|
||||||
|
.default-frontend:
|
||||||
|
image: node:latest
|
||||||
|
needs: [ ]
|
||||||
|
cache:
|
||||||
|
key: "$CI_PROJECT_ID"
|
||||||
|
paths:
|
||||||
|
- Resources/Private/node_modules/
|
||||||
|
- Resources/Private/.yarn
|
||||||
|
before_script:
|
||||||
|
- npm install -g eslint
|
||||||
|
- cd ./Resources/Private
|
||||||
|
- yarn install --cache-folder .yarn
|
||||||
|
|
||||||
build-composer-dependencies:
|
build-composer-dependencies:
|
||||||
extends: .default
|
extends: .default
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -101,6 +114,18 @@ xliff-lint:
|
||||||
- xmllint --schema ./xliff-core-1.2-strict.xsd
|
- xmllint --schema ./xliff-core-1.2-strict.xsd
|
||||||
--noout $(find Resources -name '*.xlf')
|
--noout $(find Resources -name '*.xlf')
|
||||||
|
|
||||||
|
javascript-lint:
|
||||||
|
extends: .default-frontend
|
||||||
|
stage: lint
|
||||||
|
script:
|
||||||
|
- yarn lint:js
|
||||||
|
|
||||||
|
style-lint:
|
||||||
|
extends: .default-frontend
|
||||||
|
stage: lint
|
||||||
|
script:
|
||||||
|
- yarn lint:style
|
||||||
|
|
||||||
unit-php7.2-v10:
|
unit-php7.2-v10:
|
||||||
extends: .default
|
extends: .default
|
||||||
image: php:7.2
|
image: php:7.2
|
||||||
|
|
Loading…
Reference in a new issue