add eslint to ci gitlab

This commit is contained in:
Julie Lenaerts 2024-11-14 16:46:37 +01:00
parent 0454e5d758
commit 9d9f062417

View File

@ -5,6 +5,7 @@ cache:
paths: paths:
- /vendor/ - /vendor/
- .cache - .cache
- node_modules/
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service # 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. # See http://docs.gitlab.com/ee/ci/services/README.html for examples.
@ -102,6 +103,19 @@ rector_tests:
- bin - bin
- vendor/ - 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: # psalm_tests:
# stage: Tests # stage: Tests
# image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 # image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82