diff --git a/.circleci/config.yml b/.circleci/config.yml index 9c953f6d67fa..815244ed2edf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -146,6 +146,14 @@ jobs: at: /tmp/verdaccio-workspace - run: ./scripts/integration-tests/e2e-babel.sh + e2e-create-react-app: + executor: node-executor + steps: + - checkout + - attach_workspace: + at: /tmp/verdaccio-workspace + - run: ./scripts/integration-tests/e2e-create-react-app.sh + workflows: version: 2 test: @@ -179,3 +187,6 @@ workflows: - e2e-babel: requires: - publish-verdaccio + - e2e-create-react-app: + requires: + - publish-verdaccio diff --git a/scripts/integration-tests/e2e-create-react-app.sh b/scripts/integration-tests/e2e-create-react-app.sh new file mode 100755 index 000000000000..e589ec12fe41 --- /dev/null +++ b/scripts/integration-tests/e2e-create-react-app.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +#==============================================================================# +# SETUP # +#==============================================================================# + +# Start in scripts/integration-tests/ even if run from root directory +cd "$(dirname "$0")" + +source utils/local-registry.sh +source utils/cleanup.sh + +# Echo every command being executed +set -x + +# Clone create-react-app +git clone https://github.com/facebook/create-react-app.git tmp/create-react-app +cd tmp/create-react-app + +#==============================================================================# +# TEST # +#==============================================================================# + +startLocalRegistry "$PWD"/../../verdaccio-config.yml +yarn install +# "yarn upgrade --scope @babel --latest" doesn't seem to work. +# a means "all", while \n is the enter needed to confirm the selection. +echo "a\n" | yarn upgrade-interactive --scope @babel --latest + +# Test +CI=true yarn test + +cleanup