Skip to content

Commit fc3e59c

Browse files
committed
Add Cypress to CircleCI
1 parent b235cbc commit fc3e59c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ jobs:
2424
root: ~/editor
2525
paths:
2626
- "*"
27+
integration:
28+
docker:
29+
- image: cypress/base:14.16.0
30+
environment:
31+
TERM: xterm
32+
working_directory: ~/editor
33+
steps:
34+
- attach_workspace:
35+
at: ~/editor
36+
- run:
37+
name: reinstall cypress binary
38+
command: npm install cypress
39+
- run: npm run integration:tests
2740
release:
2841
working_directory: ~/editor
2942
docker:
@@ -47,6 +60,9 @@ workflows:
4760
build_and_deploy:
4861
jobs:
4962
- build
63+
- integration:
64+
requires:
65+
- build
5066
- release:
5167
requires:
5268
- build

packages/editor-pro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build:esm": "tsc --module es2015 --target es5 --outDir ./esm",
2626
"build:packages": "node ../../scripts/generate-packages.js",
2727
"build:css": "node ../../scripts/copy-css.js",
28-
"integration:tests": "cypress run --component --browser chrome"
28+
"integration:tests": "cypress run --component --browser electron"
2929
},
3030
"devDependencies": {
3131
"cypress": "^10.0.2"

0 commit comments

Comments
 (0)