From 6d9c28967fc6f0f175d54187bd086763c7b85efa Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Tue, 15 Nov 2022 18:59:10 -0600 Subject: [PATCH] Adding circleci config --- .circleci/config.yml | 22 ++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..2260b7c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,22 @@ +version: 2.1 + +orbs: + node: circleci/node@5.0.2 + +jobs: + test: + executor: node/default + steps: + - checkout + - node/install: + node-version: '16.13' + - node/install-packages: + pkg-manager: npm + - run: + name: Start web server + command: npm run start + - run: + name: Run cypress tests + command: | + curl --retry-delay 5 --retry 10 --retry-connrefused https://localhost:3000 + npm run cypress:run diff --git a/package.json b/package.json index 0cef833..4aecab8 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,8 @@ "prepublishOnly": "tsc -p ./ --outDir lib/", "start": "BROWSER=none react-scripts start", "test": "react-scripts test", - "cypress:open": "cypress open" + "cypress:open": "cypress open", + "cypress:run": "cypress run" }, "eslintConfig": { "extends": [