GitLab CI: fail the CI if en.json isn't updated with the codebase

ci-build
Alex Gleason 2022-12-28 23:41:44 -06:00
rodzic 73315e4095
commit 1af36da927
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 8 dodań i 10 usunięć

Wyświetl plik

@ -116,16 +116,14 @@ docs-deploy:
- "docs/**/*"
interruptible: true
# Supposed to fail when translations are outdated, instead always passes
#
# i18n:
# stage: build
# script: yarn manage:translations
# variables:
# NODE_ENV: development
# before_script:
# - yarn
# - yarn build
i18n:
stage: deploy
script:
- yarn manage:translations en
# Fail if files got changed.
# https://stackoverflow.com/a/9066385
- git diff --quiet
interruptible: true
review:
stage: deploy