diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..b1050cd --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,37 @@ +version: 2 +jobs: + node-latest: &test + docker: + - image: node:latest + working_directory: ~/react-testing-talk + steps: + - checkout + - run: + name: Update npm + command: 'npm install -g npm@latest' + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: Install dependencies + command: npm install + - run: + name: Testing + command: yarn test -- --coverage + - run: + name: Submitting code coverage to codecov + command: curl -s https://codecov.io/bash | bash + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - node_modules + node-8: + <<: *test + docker: + - image: node:8 + +workflows: + version: 2 + build_and_test: + jobs: + - node-latest + - node-8 diff --git a/README.md b/README.md index 8644d24..7743b10 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # React Testing Talk +[![CircleCI](https://circleci.com/gh/MichaelDimmitt/react-testing-talk/tree/master.svg?style=shield)](https://circleci.com/gh/MichaelDimmitt/plugin-release/tree/master) +[![CodeCov](https://img.shields.io/codecov/c/github/reergymerej/react-testing-talk.svg)](https://codecov.io/gh/reergymerej/react-testing-talk) + https://www.meetup.com/React-JAX/events/251275752/ This is NOT why you should test.