Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add integration test in CI #151

Closed
wants to merge 11 commits into from
Closed
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ jobs:
# hardcoded in karma-webpack
path: /tmp/_karma_webpack_
destination: artifact-file
test_integration:
dtassone marked this conversation as resolved.
Show resolved Hide resolved
<<: *defaults
steps:
- checkout
- install_js
- run:
name: 'Running Storybook integration tests'
command: yarn e2e
workflows:
version: 2
pipeline:
Expand All @@ -117,3 +125,6 @@ workflows:
- test_browser:
requires:
- checkout
- test_integration:
requires:
- checkout
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"test:karma": "cross-env NODE_ENV=test karma start test/karma.conf.js",
"test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.tsx' --exclude '**/node_modules/**'",
"test:watch": "yarn test:unit --watch",
"test:e2e": "cd packages/storybook && yarn test:ci",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering storybook is a workspace?

Suggested change
"test:e2e": "cd packages/storybook && yarn test:ci",
"test:e2e": "yarn workspace storybook test:ci",

"lint": "yarn eslint && yarn jsonlint",
"eslint": "eslint . --cache --report-unused-disable-directives --ext .js,.ts,.tsx",
"eslint:ci": "eslint . --report-unused-disable-directives --ext .js,.ts,.tsx"
Expand Down