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": [