Skip to content
Snippets Groups Projects
Commit 626e1798 authored by GitLab CI's avatar GitLab CI
Browse files

Merge branch 'develop' into 'main'

Merging develop into main

See merge request !19
parents d99fdbde 1f2f840e
No related branches found
Tags v3.2.16
1 merge request!19Merging develop into main
Pipeline #1239263 passed
ahoyapi
checkstyle
eslintmodule
lakedrops
mariadbtest
PHANTOMJS
phantomjs
phpcpd
phpcsignore
phpcsmodule
phplintmodule
phploc
phpmetrics
phpmetricsmodule
phpstanmodule
phpunitgroup
phpunitmodule
projectname
stylelintmodule
stylelintprepare
stylelintrc
traefik
usessl
......@@ -105,3 +105,26 @@ commands:
echo "Testing for outdated minor versions ..."
composer outdated --minor-only --strict --no-interaction
usage: Verifies that a dependencies are using the latest minor and patch versions
cspellmodule:
cmd: |
export CI_PROJECT_NAME=$1
shift
while read assign; do
export "$assign";
done < <(sed -nr '/variables:/,$ s/ ([A-Z_]+): (.*)/\1=\2/ p' /drupal/web/modules/contrib/$CI_PROJECT_NAME/.gitlab-ci.yml)
export _WEB_ROOT=/drupal/web
export _CURL_TEMPLATES_REPO=project/gitlab_templates
export _CURL_TEMPLATES_REF=default-ref
cd /drupal/web/modules/contrib/$CI_PROJECT_NAME
curl -sOL https://git.drupalcode.org/$_CURL_TEMPLATES_REPO/-/raw/$_CURL_TEMPLATES_REF/scripts/prepare-cspell.php
if [ ! -f .cspell.json ]; then
curl -sOL https://git.drupalcode.org/$_CURL_TEMPLATES_REPO/-/raw/$_CURL_TEMPLATES_REF/assets/.cspell.json
fi
php prepare-cspell.php
rm prepare-cspell.php
touch .cspell-project-words.txt
/drupal/web/core/node_modules/.bin/cspell -c .cspell.json --show-suggestions --show-context --no-progress $_CSPELL_EXTRA ** || EXIT_CODE=$?
if [ "$EXIT_CODE" != "" ]; then
/drupal/web/core/node_modules/.bin/cspell -c .cspell.json --words-only --unique --no-progress $_CSPELL_EXTRA ** | sort -f
fi
rm .cspell.json
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