Skip to content

Commit

Permalink
chore: cypress ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehenson committed Mar 15, 2024
1 parent 3823f80 commit 7e76b1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down Expand Up @@ -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
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7e76b1c

Please sign in to comment.