Skip to content
Snippets Groups Projects
Commit 7cd691d8 authored by Benjamin Franzke's avatar Benjamin Franzke Committed by Anja Leichsenring
Browse files

[TASK] Add CI check for zero stray or non updated JavaScript files

All in-tree .js files have been migrated to TypeScript, so it's
time to add a CI check to ensure no stray build files (see #101786)
or non-updated JavaScript files (e.g. #101784, #101785, #101787)
are present in the git tree.

Resolves: #101783
Related: #101784
Related: #101785
Related: #101786
Related: #101787
Releases: main, 12.4
Change-Id: I02aeaaeaae7fa0df634f39cb151f4316240936ab
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80869


Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 56451a58
Branches
Tags
No related merge requests found
......@@ -702,7 +702,7 @@ case ${TEST_SUITE} in
SUITE_EXIT_CODE=$?
;;
checkGruntClean)
COMMAND="cd Build; npm ci || exit 1; node_modules/grunt/bin/grunt build; cd ..; git add *; git status; git status | grep -q \"nothing to commit, working tree clean\""
COMMAND="find 'typo3/sysext' -name '*.js' -not -path '*/Fixtures/*' -exec rm '{}' + && cd Build; npm ci || exit 1; node_modules/grunt/bin/grunt build; cd ..; git add *; git status; git status | grep -q \"nothing to commit, working tree clean\""
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name check-grunt-clean-${SUFFIX} -e HOME=${CORE_ROOT}/.cache ${IMAGE_NODEJS} /bin/sh -c "${COMMAND}"
SUITE_EXIT_CODE=$?
;;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment