2020-06-23 15:58:58 +00:00
|
|
|
version: 2.1
|
|
|
|
orbs:
|
|
|
|
node: circleci/node@1.1.6
|
2020-06-23 16:13:24 +00:00
|
|
|
codecov: codecov/codecov@1.0.2
|
2020-06-23 15:58:58 +00:00
|
|
|
jobs:
|
|
|
|
build-and-test:
|
|
|
|
executor:
|
|
|
|
name: node/default
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- node/with-cache:
|
|
|
|
steps:
|
|
|
|
- run: yarn install
|
|
|
|
- run: yarn test:coverage
|
2020-06-23 16:40:47 +00:00
|
|
|
- run: yarn build
|
2020-06-23 15:58:58 +00:00
|
|
|
- store_artifacts:
|
|
|
|
path: coverage
|
2020-06-23 16:40:47 +00:00
|
|
|
- store_artifacts:
|
|
|
|
path: public
|
2020-06-23 16:12:20 +00:00
|
|
|
- codecov/upload:
|
|
|
|
file: coverage/cobertura-coverage.xml
|
2020-06-23 15:58:58 +00:00
|
|
|
workflows:
|
|
|
|
build-and-test:
|
|
|
|
jobs:
|
|
|
|
- build-and-test
|