diff --git a/.circleci/template.yml b/.circleci/template.yml index a45cea8825b..8c74d3fc8eb 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -24,7 +24,7 @@ commands: echo "Running full flow due to nightly build, despite detecting '[short flow]'." exit 0 fi - + if [[ "$COMMIT_MESSAGE" == *"[short flow]" ]]; then echo "Skipping, because the commit message contains '[short flow]'." circleci step halt @@ -105,6 +105,10 @@ jobs: when: always name: Validate icons specified in "ckeditor5-metadata.json" files command: node scripts/ci/validate-metadata-icons.js + - run: + when: always + name: Check if all SVG files are optimized + command: yarn run clean-up-svg-icons --verify-only - run: when: always name: Validate manual test directories diff --git a/scripts/clean-up-svg-icons.js b/scripts/clean-up-svg-icons.js index 672b70c148b..9b6f6dd7abf 100644 --- a/scripts/clean-up-svg-icons.js +++ b/scripts/clean-up-svg-icons.js @@ -10,20 +10,37 @@ // Cleans up and optimizes SVG files using the SVGO utility. The configuration file is located in svgo.config.json. // // Usage: -// yarn run clean-up-svg-icons +// yarn run clean-up-svg-icons [