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