Skip to content
Snippets Groups Projects
Commit 6c90351c authored by Georg Krause's avatar Georg Krause
Browse files

Add job to lint Frontend changes

parent 5fccbb90
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,24 @@ flake8:
paths:
- "$PIP_CACHE_DIR"
eslint:
interruptible: true
image: node:12-buster
stage: lint
allow_failure: true
before_script:
- cd front
- yarn install
script:
# 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
- export changedFiles=$(git diff --relative --name-only --diff-filter=d origin/develop -- src/ | grep -E "\.(vue|js)$")
- yarn run eslint --quiet -f table $changedFiles
cache:
key: "$CI_PROJECT_ID__eslint_npm_cache"
paths:
- front/node_modules
test_api:
interruptible: true
services:
......
<template>
<main :class="[theme]">
<!-- SVG from https://cdn.plyr.io/3.4.7/plyr.svg -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment