mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
12 lines
238 B
Bash
Executable File
12 lines
238 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
yarn test --coverage --maxWorkers=2
|
|
if [ -z $CI_PULL_REQUEST ]; then
|
|
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
|
|
fi
|
|
|
|
# TODO: should we also track prod code coverage somehow?
|
|
# yarn test-prod --coverage
|