From e66579a20a02e1035a0c1f4107e559da1ef10257 Mon Sep 17 00:00:00 2001 From: guhur <12297742+guhur@users.noreply.github.com> Date: Sat, 28 Dec 2019 11:30:16 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 727d79d..09984ff 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,27 @@ -orbs: - react: 'thefrontside/react@dev:alpha' version: 2.1 -workflows: - push: - jobs: - - react/install - - react/test: - requires: - - react/install +jobs: + build: + docker: + - image: circleci/node:10.16.3 + steps: + - checkout + - run: + name: update-yarn + command: 'curl --compressed -o- -L https://yarnpkg.com/install.sh | bash' + - restore_cache: + key: dependency-cache-{{ checksum "package-lock.json" }} + - run: + name: install-yarn + command: yarn install + - save_cache: + key: dependency-cache-{{ checksum "package-lock.json" }} + paths: + - ./node_modules + - run: + name: test + command: yarn test + - store_artifacts: + path: test-results.xml + prefix: tests + - store_test_results: + path: test-results.xml