chore: separate build-standalone with coverage (#10905)

* chore: separate build-standalone with coverage

* style polish
This commit is contained in:
Huáng Jùnliàng
2019-12-23 13:03:45 -05:00
committed by Nicolò Ribaudo
parent f651f22f96
commit 83993b08d5
2 changed files with 47 additions and 8 deletions

View File

@@ -22,15 +22,8 @@ jobs:
- name: Generate coverage report
run: |
yarn --version
make test-ci-coverage
# Builds babel-standalone with the regular Babel config
# test-ci-coverage doesn't test babel-standalone, as trying to gather coverage
IS_PUBLISH=true make build-standalone
# data for a JS file that's several megabytes large is bound to fail. Here,
# we just run the babel-standalone test separately.
yarn jest "\-standalone/test"
make -j test-ci-coverage
- name: Upload coverage report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}