Loading
ci: test that extension icons are up-to-date
Fixes: gitlab-org/editor-extensions/meta#3 (closed)
This MR adds a CI job that ensures that the icons are up-to-date with icons in https://gitlab.com/gitlab-org/editor-extensions/gitlab-ide-icons
This job runs only on main (unless the MR changes icons). This is the same as our "check-ci-variables" jobs and the reason why it runs only on main is not to confuse contributors with failing that is unrelated to their MR.
The job does these steps:
- Checks that the repository is not dirty (
git statusreturns empty string) - Replaces all existing icons with latest icons from https://gitlab.com/gitlab-org/editor-extensions/gitlab-ide-icons
- runs
git statusagain to see if any icons changed
Job output examples
- Example of failure in CI: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/jobs/4662878873
- in this run I commented out the CI setting that will disable the job for non-
mainbranches
- in this run I commented out the CI setting that will disable the job for non-
- Here is pipeline that didn't trigger the job because icons haven't changed https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/pipelines/932754187
- The latest job https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/jobs/4662908601 proves that:
- the updated icons are up-to-date
- the job is also run on MRs when we change icons
Edited by Tomas Vik (OOO back on 2026-08-31)