Skip to content

Commit

Permalink
ci: parallelize cypress tests, increase Percy asset discovery timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed Jul 23, 2020
1 parent 627d284 commit 6c88b24
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ orbs:
workflows:
build:
jobs:
- cypress/run:
post-install:
- run: apt-get update
- run: apt-get install -y libgbm-dev
executor: cypress/base-12
- cypress/install:
yarn: true
command: yarn ci:serve-and-test
executor: cypress/base-12-16-1
- cypress/run:
requires:
- cypress/install
executor: cypress/base-12-16-1
# https://github.com/cypress-io/circleci-orb/issues/299
command: apt-get update && apt-get install -y libgbm-dev && yarn ci:serve-and-test
no-workspace: true
record: true
parallel: true
parallelism: 4
store_artifacts: true
post-steps:
- run: yarn test:unit
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"cypress": "cypress open",
"test": "node -e \"console.log('\\nPlease run \\`yarn test:unit\\` and \\`yarn test:e2e\\` separately. For E2E tests, \\`yarn start\\` must also be running.\\n')\"",
"ci:serve-and-test": "start-server-and-test start http-get://localhost:3000 ci:e2e",
"ci:e2e": "yarn percy exec yarn test:e2e --record",
"ci:e2e": "yarn percy exec -t 350 yarn test:e2e --record",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down

0 comments on commit 6c88b24

Please sign in to comment.