mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 00:36:13 +01:00

[FEATURE] Add frontend linting to GitLab CI

Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
Łukasz Uznański 2020-12-02 16:08:00 +01:00 committed by GitHub
parent a62d9ae58d
commit 68ec441b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,19 @@ variables:
before_script:
- 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:
extends: .default
stage: build
@ -101,6 +114,18 @@ xliff-lint:
- xmllint --schema ./xliff-core-1.2-strict.xsd
--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:
extends: .default
image: php:7.2