From fad018a1c6d29571460f108076231bc5169a6a96 Mon Sep 17 00:00:00 2001 From: Ryo Shibayama Date: Thu, 21 Mar 2019 22:09:37 +0900 Subject: [PATCH 1/3] Add CircleCI 2.0 config --- .circleci/config.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..a4180201 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node:6 + + working_directory: ~/repo + + steps: + - checkout + + - restore_cache: + keys: + - v1-dep-{{ .Branch }}-{{ checksum "package-lock.json" }} + - v1-dep-{{ .Branch }}- + - v1-dep- + + - run: npm install + + - save_cache: + paths: + - node_modules + key: v1-dep-{{ .Branch }}-{{ checksum "package-lock.json" }} + + - run: npm test From 10e30b84bf689217d0bb2fce0f849e5c640c6124 Mon Sep 17 00:00:00 2001 From: Ryo Shibayama Date: Thu, 21 Mar 2019 22:09:49 +0900 Subject: [PATCH 2/3] Remove circle.yml --- circle.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 circle.yml diff --git a/circle.yml b/circle.yml deleted file mode 100644 index a2495ab3..00000000 --- a/circle.yml +++ /dev/null @@ -1,7 +0,0 @@ -machine: - node: - version: 6 - -dependencies: - cache_directories: - - "node_modules" From 66c819eda1417d899ed523c9b574705f516d2626 Mon Sep 17 00:00:00 2001 From: Ryo Shibayama Date: Thu, 21 Mar 2019 22:13:19 +0900 Subject: [PATCH 3/3] Print Node.js version --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a4180201..65855010 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,6 +9,10 @@ jobs: steps: - checkout + - run: + name: "Print Node.js version" + command: node --version + - restore_cache: keys: - v1-dep-{{ .Branch }}-{{ checksum "package-lock.json" }}