From 1af36da927b714ef61274124bf9c61259d3e5e8b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 28 Dec 2022 23:41:44 -0600 Subject: [PATCH] GitLab CI: fail the CI if en.json isn't updated with the codebase --- .gitlab-ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cdf22dd2e..786ae56fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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