Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brendancarney/f0c1e7baa01e0bdc2c98669a5ce19b31 to your computer and use it in GitHub Desktop.
Save brendancarney/f0c1e7baa01e0bdc2c98669a5ce19b31 to your computer and use it in GitHub Desktop.
version: 2
jobs:
build:
docker:
- image: cypress/base:8
working_directory: ~/repo
resource_class: large
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn
- run: yarn build
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
# run tests!
- run:
command: yarn start
background: true
- run:
command: yarn cypress run
when: on_success
- run: yarn test
- store_artifacts:
path: cypress/videos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment