Run e2e tests on GH actions (#12517)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Juan Picado <juanpicado19@gmail.com>
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
# Copied from https://github.com/facebook/create-react-app/blob/053f9774d3f592c17741d2a86de66a7ca58f90c0/tasks/local-registry.sh
|
||||
|
||||
custom_registry_url=http://localhost:4873
|
||||
default_verdaccio_package=verdaccio@~4.3.3
|
||||
default_verdaccio_package=verdaccio@~4.11.1
|
||||
|
||||
function startLocalRegistry {
|
||||
# Start local registry
|
||||
tmp_registry_log=`mktemp`
|
||||
echo "Registry output file: $tmp_registry_log"
|
||||
(cd && nohup npx ${VERDACCIO_PACKAGE:-$default_verdaccio_package} -c $1 &>$tmp_registry_log &)
|
||||
|
||||
yarn global add verdaccio-memory@~9.7.2
|
||||
# Wait for Verdaccio to boot
|
||||
grep -q "http address" <(tail -f $tmp_registry_log)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user