add npm run build before npm run start, so a build failure gives a cleaner error to circleci

This commit is contained in:
2023-03-16 12:10:40 -05:00
parent b63fb03410
commit db3e5ff507

View File

@ -49,6 +49,7 @@ commands:
name: Run react app and mvn verify name: Run react app and mvn verify
command: | command: |
echo "HTTPS=true" >> ./.env echo "HTTPS=true" >> ./.env
npm run build
export REACT_APP_PROXY_LOCALHOST_PORT=8001; export PORT=3001; npm run start & export REACT_APP_PROXY_LOCALHOST_PORT=8001; export PORT=3001; npm run start &
dockerize -wait tcp://localhost:3001 -timeout 3m dockerize -wait tcp://localhost:3001 -timeout 3m
export QQQ_SELENIUM_HEADLESS=true; mvn verify export QQQ_SELENIUM_HEADLESS=true; mvn verify