test-frontend.sh 673 B

12345678910111213141516171819202122
  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 -- 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
  13. if ! yarn dedupe --strategy highest --check ; then
  14. echo "You have duplicate version resolutions of some packages in yarn.lock. Run 'yarn dedupe' and commit the updated yarn.lock."
  15. yarn dedupe --strategy highest
  16. git --no-pager diff
  17. exit 1
  18. fi