Fix eslint invocation in CI
This commit is contained in:
parent
687a2cfa03
commit
e4b11df1ea
|
@ -132,7 +132,7 @@ eslint:
|
||||||
# We search for all files ending with .vue or .js in src which changed in relation to develop
|
# We search for all files ending with .vue or .js in src which changed in relation to develop
|
||||||
# and lint them. This way we focus on some errors instead of checking the hole repository
|
# and lint them. This way we focus on some errors instead of checking the hole repository
|
||||||
- export changedFiles=$(git diff --relative --name-only --diff-filter=d origin/develop -- src/ | grep -E "\.(vue|js)$")
|
- export changedFiles=$(git diff --relative --name-only --diff-filter=d origin/develop -- src/ | grep -E "\.(vue|js)$")
|
||||||
- yarn run eslint --quiet -f table $changedFiles
|
- yarn run eslint --quiet -f table $(echo $changedFiles | tr '\n' ' ')
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_PROJECT_ID__eslint_npm_cache"
|
key: "$CI_PROJECT_ID__eslint_npm_cache"
|
||||||
paths:
|
paths:
|
||||||
|
|
Loading…
Reference in New Issue