From 1c28cfd50dffeedb03806579da3690a1eb7032c4 Mon Sep 17 00:00:00 2001 From: Paul Sud <41386393+paul-sud@users.noreply.github.com> Date: Mon, 31 Jan 2022 10:11:39 -0800 Subject: [PATCH] REG-81-add-circleci --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 28 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..d01cd648c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,27 @@ +version: 2.1 + +executors: + node: + docker: + - image: cimg/node:10.24.1 + working_directory: ~/regulome-encoded + +jobs: + npm: + executor: node + resource_class: medium+ + steps: + - checkout + - run: + name: Install Javascript packages and build + command: npm ci + - run: + name: npm tests + # Can't store test results, the CLI for our Jest version doesn't support --ci or --reporter flags + command: npm run circleci-test + +workflows: + version: 2 + regulome-encoded-tests: + jobs: + - npm diff --git a/package.json b/package.json index 4c86cf413..86e0efcd1 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "domready held back.", "scripts": { "test": "jest --silent", + "circleci-test": "jest --runInBand", "build": "gulp build", "dev": "gulp dev" },