sourcegraph/dev/ci/yarn-web-integration.sh
2022-07-11 01:24:53 -07:00

21 lines
587 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo "--- Download pre-built client artifact"
buildkite-agent artifact download 'client.tar.gz' . --step 'puppeteer:prep'
tar -xf client.tar.gz -C .
echo "--- Yarn install in root"
# mutex is necessary since CI runs various yarn installs in parallel
yarn --mutex network --frozen-lockfile --network-timeout 60000 --silent
echo "--- Run integration test suite"
yarn percy exec --quiet -- yarn _cover-integration "$@"
echo "--- Process NYC report"
yarn nyc report -r json
echo "--- Upload coverage report"
dev/ci/codecov.sh -c -F typescript -F integration