From 9d9f0624175b5fcc6909b750a513e58b2e9335fa Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 14 Nov 2024 16:46:37 +0100 Subject: [PATCH] add eslint to ci gitlab --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb5c8dd5d..caf115746 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ cache: paths: - /vendor/ - .cache + - node_modules/ # Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service # See http://docs.gitlab.com/ee/ci/services/README.html for examples. @@ -102,6 +103,19 @@ rector_tests: - bin - vendor/ +lint: + stage: Tests + image: node:20-alpine + before_script: + - apk add --no-cache python3 make g++ py3-setuptools + - export PYTHON="$(which python3)" + - export PATH="./node_modules/.bin:$PATH" + script: + - yarn install --ignore-optional + - eslint --fix-dry-run --quiet + cache: + paths: + - node_modules/ # psalm_tests: # stage: Tests # image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82