mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Removing grist logs from tests
This commit is contained in:
parent
9da6fec7ad
commit
c7a6784873
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -42,10 +42,10 @@ jobs:
|
||||
run: yarn run build:prod
|
||||
|
||||
- name: Run smoke test
|
||||
run: VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:smoke
|
||||
run: VERBOSE=1 DEBUG=1 GRIST_LOG_LEVEL=error MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:smoke
|
||||
|
||||
- name: Run main tests
|
||||
run: VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test
|
||||
run: VERBOSE=1 DEBUG=1 GRIST_LOG_LEVEL=error MOCHA_WEBDRIVER_HEADLESS=1 yarn run test
|
||||
|
||||
- name: Update candidate branch
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
|
@ -33,6 +33,7 @@ docker run --name $DOCKER_CONTAINER --rm \
|
||||
-p $PORT:$PORT --env PORT=$PORT \
|
||||
--env GRIST_SESSION_COOKIE=grist_test_cookie \
|
||||
--env GRIST_TEST_LOGIN=1 \
|
||||
--env GRIST_LOG_LEVEL=error \
|
||||
--env TEST_SUPPORT_API_KEY=api_key_for_support \
|
||||
${TEST_IMAGE:-gristlabs/grist} &
|
||||
|
||||
@ -45,10 +46,16 @@ while true; do
|
||||
done
|
||||
echo ""
|
||||
echo "[server found]"
|
||||
MOCHA=mocha
|
||||
# Test if we have mocha available as a command
|
||||
if ! type $MOCHA > /dev/null 2>&1; then
|
||||
echo "Mocha not found, using from ./node_modules/.bin/mocha"
|
||||
MOCHA=./node_modules/.bin/mocha
|
||||
fi
|
||||
|
||||
TEST_ADD_SAMPLES=1 TEST_ACCOUNT_PASSWORD=not-needed \
|
||||
HOME_URL=http://localhost:8585 \
|
||||
GRIST_SESSION_COOKIE=grist_test_cookie \
|
||||
GRIST_TEST_LOGIN=1 \
|
||||
NODE_PATH=_build:_build/stubs \
|
||||
mocha _build/test/nbrowser/*.js "$@"
|
||||
$MOCHA _build/test/nbrowser/*.js "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user