Skip to content

fix(release): add-testing-step-in-circleci #321

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

Merged
merged 3 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ jobs:
- run:
name: Release
command: yarn workspace @webex/widgets run release

unit_tests:
executor: node-executor
steps:
- checkout_from_workspace
- run:
name: Test Tooling
command: yarn run test:tooling
- run:
name: Test CC Widgets
command: yarn run test:cc-widgets

release_widgets:
executor: node-executor
Expand Down Expand Up @@ -128,9 +139,16 @@ workflows:
filters:
branches:
only: master
- unit_tests:
requires:
- build
filters:
branches:
only: eft
- release_widgets:
requires:
- build
- unit_tests
filters:
branches:
only: eft
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
"webpack-dev-server": "^5.1.0"
},
"scripts": {
"test:unit": "jest --coverage",
"test:unit": "yarn run test:tooling && yarn run test:cc-widgets",
"test:tooling": "jest --coverage",
"test:cc-widgets": "yarn run test:store && yarn run test:widgets",
"test:store": "yarn workspace @webex/cc-store test:unit",
"test:widgets": "yarn workspace @webex/cc-station-login test:unit && yarn workspace @webex/cc-user-state test:unit",
"build": "yarn run build:store && yarn run build:widgets",
"build:store": "yarn workspace @webex/cc-store build:src",
"build:widgets": "yarn workspace @webex/cc-station-login build:src && yarn workspace @webex/cc-user-state build:src",
Expand Down
3 changes: 2 additions & 1 deletion packages/contact-center/station-login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"testMatch": [
"**/tests/**/*.ts",
"**/tests/**/*.tsx"
]
],
"passWithNoTests": true
},
"stableVersion": "1.28.0-eft.2"
}
3 changes: 2 additions & 1 deletion packages/contact-center/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"webpack-merge": "6.0.1"
},
"jest": {
"testEnvironment": "jsdom"
"testEnvironment": "jsdom",
"passWithNoTests": true
},
"stableVersion": "1.28.0-eft.2"
}
3 changes: 2 additions & 1 deletion packages/contact-center/user-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"webpack-merge": "6.0.1"
},
"jest": {
"testEnvironment": "jsdom"
"testEnvironment": "jsdom",
"passWithNoTests": true
},
"stableVersion": "1.28.0-eft.2"
}