diff --git a/.circleci/config.yml b/.circleci/config.yml index 22b1eeb..9f4e7ce 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,21 @@ version: 2.1 orbs: - cypress: cypress-io/cypress@3.1.3 - + cypress: cypress-io/cypress@3.1.3 workflows: - run-cy-tests: - jobs: - - cypress/run: - cypress-command: npm run cy:ci - parallelism: 2 # use 2 CircleCI machines to finish quickly + build: + jobs: + - cypress/run: + cypress-command: 'npx cypress run --parallel --record' + parallelism: 2 + weekly: + triggers: + - schedule: + cron: "0 0 * * 0" + filters: + branches: + only: + - main + jobs: + - cypress/run: + cypress-command: 'npx cypress run --parallel --record' + parallelism: 2 diff --git a/.gitignore b/.gitignore index 5e8d1ed..eaf7c8d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ bin-release/ /screenshots cypress/videos /node_modules +cypress/screenshots \ No newline at end of file diff --git a/package.json b/package.json index dabac81..1a4109d 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "cy:open:web": "cypress open --e2e --browser=chrome --env device=web", "cy:run:mob": "cypress run --browser=chrome --env device=mob", "cy:run:web": "cypress run --env device=web", - "cy:ci": "cypress run --env device=web --record --parallel --browser electron --headless --group=all_tests" + "cy:ci": "cypress run --env device=web --record --parallel --browser chrome --headless" }, "devDependencies": { "cypress": "^13.1.0",