test-frontend.sh 449 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. # https://ci-operator-configresolver-ui-ci.apps.ci.l2s4.p1.openshiftapps.com/help#env
  4. OPENSHIFT_CI=${OPENSHIFT_CI:=false}
  5. ARTIFACT_DIR=${ARTIFACT_DIR:=/tmp/artifacts}
  6. yarn i18n
  7. GIT_STATUS="$(git status --short --untracked-files -- public/locales packages/**/locales)"
  8. if [ -n "$GIT_STATUS" ]; then
  9. echo "i18n files are not up to date. Run 'yarn i18n' then commit changes."
  10. git --no-pager diff
  11. exit 1
  12. fi