mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 11:35:54 +08:00
* dbeaver/pro#6436 initializes unit tests for common-react * installs common-react in the scripts * adds @dbeaver/react-tests * setups @dbeaver/react-test into tests-runner * implements react-testing library into @dbeaver/react-tests * removes unused deps * adds test for frontend build github action
40 lines
720 B
Bash
Executable File
40 lines
720 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
|
|
echo "Build static content"
|
|
|
|
mkdir -p ./cloudbeaver/web
|
|
|
|
cd ../../cloudbeaver/common-typescript
|
|
|
|
yarn install --immutable
|
|
cd ../common-react
|
|
yarn install --immutable
|
|
cd ../webapp
|
|
yarn install --immutable
|
|
cd ./packages/product-default
|
|
yarn run bundle
|
|
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
echo 'Application build failed'; exit $rc
|
|
fi
|
|
|
|
cd ../../../common-typescript
|
|
yarn test
|
|
cd ../common-react
|
|
yarn test
|
|
cd ../webapp
|
|
yarn test
|
|
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
echo 'Frontend tests failed'; exit $rc
|
|
fi
|
|
|
|
cd ../deploy
|
|
|
|
echo "Copy static content"
|
|
|
|
cp -rp ../webapp/packages/product-default/lib/* cloudbeaver/web
|
|
|
|
echo "Cloudbeaver is ready. Run run-server.sh in cloudbeaver folder to start the server."
|