Skip to content
Snippets Groups Projects
Commit 396655d2 authored by Jérôme Charaoui's avatar Jérôme Charaoui :telescope:
Browse files

Add check_lfs_pointers CI job (tpo/web/blog#40036)

This job is added to fail CI when commits that include LFS-tracked files
are actually missing the LFS pointer. This can happen when files are
added via the GitLab web UI at the same time as a branch is created, see
tpo/web/blog#40036
parent af415d07
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,23 @@ check_mangled_i18n:
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# this check verifies that no pointers are missing for LFS-tracked files
# the $CI_CHECK_LFS variable enables this job
check_lfs_pointers:
stage: test
image: bookwork-slim
script:
before_script:
- !reference [.apt-init]
script:
- apt install -y git-lfs
- git lfs fsck --pointers
rules:
- if: $L10N_STAGING
when: never
- if: $CI_COMMIT_BRANCH && $CI_CHECK_LFS
# this check verifies compares the PO files and determines
# if there are any stale strings or new unstranslated strings
# in which case it will trigger an alert in tpo/community/l10n
......
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