From 679ecbbc74b97ccfb9a3a28434e5f3891637ced0 Mon Sep 17 00:00:00 2001 From: BERNARD Hugo <hugo.bernard9@etu.univ-lorraine.fr> Date: Wed, 3 Nov 2021 14:16:20 +0000 Subject: [PATCH] Add stylelint --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b693865..31f2843 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,8 @@ before_script: # Install and run Composer - curl -sS https://getcomposer.org/installer | php - php composer.phar install + # Install npm deps + - npm install # 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. @@ -37,6 +39,10 @@ variables: # Run our tests # If Xdebug was installed you can generate a coverage report and see code coverage metrics. -lint: +phplint: script: ./vendor/bin/phplint +stylelint: + script: + npx stylelint "**/*.css" + npx stylelint "**/*.scss" \ No newline at end of file -- GitLab