Unverified Commit 68ec441b authored by Łukasz Uznański's avatar Łukasz Uznański Committed by GitHub
Browse files

[FEATURE] Add frontend linting to GitLab CI


Co-authored-by: default avatarŁukasz Uznański <l.uznanski@macopedia.com>
parent a62d9ae5
...@@ -23,6 +23,19 @@ variables: ...@@ -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: ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment