From 7f3d528bb9efb39780a4819fecd4ebc63bae67c3 Mon Sep 17 00:00:00 2001 From: michaeldimmitt Date: Mon, 2 Jul 2018 12:46:37 -0400 Subject: [PATCH 1/4] Circle CI passing with node version 10.5.0 specified. --- circle.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..ac7e7f3 --- /dev/null +++ b/circle.yml @@ -0,0 +1,4 @@ +machine: + node: + version: 10.5.0 + From 5ceeac2be72879274c10d78937314d55b4b33e6e Mon Sep 17 00:00:00 2001 From: michaeldimmitt Date: Mon, 2 Jul 2018 12:57:36 -0400 Subject: [PATCH 2/4] give me a shield --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8644d24..8556844 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # 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) + https://www.meetup.com/React-JAX/events/251275752/ This is NOT why you should test. From 5bd411b2151f4fcdfee712999ef7a9b6ed032f27 Mon Sep 17 00:00:00 2001 From: michaeldimmitt Date: Wed, 4 Jul 2018 13:06:39 -0400 Subject: [PATCH 3/4] Get CodeCov with CircleCI 2.0 working --- .circleci/config.yml | 37 +++++++++++++++++++++++++++++++++++++ circle.yml | 4 ---- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml 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/circle.yml b/circle.yml deleted file mode 100644 index ac7e7f3..0000000 --- a/circle.yml +++ /dev/null @@ -1,4 +0,0 @@ -machine: - node: - version: 10.5.0 - From 3301c7160b98915e2eb1b9bf6b527408edce7fab Mon Sep 17 00:00:00 2001 From: michaeldimmitt Date: Wed, 4 Jul 2018 17:40:44 -0400 Subject: [PATCH 4/4] Add CodeCov Shield --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8556844..7743b10 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # 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/