From cac4b084b97bccbac3b44c19c9560afcc65c46bc Mon Sep 17 00:00:00 2001 From: microshine Date: Fri, 25 Jan 2019 15:54:49 +0300 Subject: [PATCH] Add circleci config --- .circleci/config.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yaml diff --git a/.circleci/config.yaml b/.circleci/config.yaml new file mode 100644 index 0000000..1acb863 --- /dev/null +++ b/.circleci/config.yaml @@ -0,0 +1,26 @@ +version: 2 +jobs: + build: + working_directory: ~/mern-starter # directory where steps will run + docker: # run the steps with Docker + - image: circleci/node:10.15.0 + steps: + - checkout + - run: + name: update-npm + command: 'sudo npm install -g npm@latest' + - restore_cache: # special step to restore the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: install-deps + command: npm install + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: # run tests with code coverage + name: test-code-coverage + command: npm run coverage + - run: # run coveralls report + name: test-report-coveralls + command: npm run coveralls