-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3823f80
commit 7e76b1c
Showing
2 changed files
with
11 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ version: 2.1 | |
orbs: | ||
browser-tools: circleci/[email protected] | ||
node: circleci/[email protected] | ||
cypress: cypress-io/cypress@3 | ||
|
||
caches: | ||
- &yarn_cache ably-ui-preview-yarn-v1-{{ checksum "yarn.lock" }} | ||
|
@@ -77,31 +78,13 @@ jobs: | |
- checkout | ||
- yarn_install | ||
- format_check | ||
cypress_tests: | ||
executor: | ||
name: default | ||
working_directory: ~/ably-ui/preview | ||
steps: | ||
- checkout | ||
- install_browser | ||
- yarn_install | ||
- run: | ||
name: Executes Cypress end-to-end tests | ||
command: | | ||
yarn cypress run \ | ||
--browser chrome \ | ||
--reporter junit \ | ||
--reporter-options "mochaFile=test-results/cypress-[hash].xml,toConsole=true" | ||
- store_test_results: | ||
path: test-results | ||
- store_artifacts: | ||
path: cypress/videos | ||
- store_artifacts: | ||
path: cypress/screenshots | ||
|
||
workflows: | ||
build: | ||
jobs: | ||
- cypress_tests | ||
- cypress/run: | ||
cypress-command: npx cypress run --browser chrome | ||
install-browsers: true | ||
start-command: npm run start:dev | ||
- lint | ||
- format_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,9 @@ jobs: | |
git config --global user.name "Github Action" | ||
./scripts/release.sh "${GITHUB_REF/refs\/tags\//}" | ||
shell: bash | ||
- uses: bitovi/[email protected] | ||
with: | ||
install_command: yarn install | ||
build_command: yarn build-storybook | ||
path: preview | ||
checkout: false |