ballyhoo
Version:
Bloody simple, super tiny, pub/sub JS events based on https://davidwalsh.name/pubsub-javascript implemented in ES6.
53 lines (43 loc) • 1.22 kB
YAML
version: 2
jobs:
build:
docker:
- image: circleci/node:10.15
working_directory: ~/repo
steps:
- checkout
- run:
name: Setup Code Climate test reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# run tests
- run:
name: jest tests
command: |
mkdir -p test-results/jest
./cc-test-reporter before-build
npm run test:ci
./cc-test-reporter after-build --exit-code $?
environment:
JEST_JUNIT_OUTPUT: coverage/junit/junit.xml
- store_test_results:
path: coverage/junit
- store_artifacts:
path: coverage
#define workflow
workflows:
version: 2
workflow:
jobs:
- build