docs: link recording example to cypress cloud (#977) #2027
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
name: example-custom-command | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
# ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # | |
start-v9: | |
# example where instead of forming the default "cypress run ..." | |
# the user can specify their own command | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Custom tests 🧪 | |
uses: ./ | |
with: | |
command: npm run custom-test | |
working-directory: examples/v9/custom-command | |
- name: Show saved file 🖨 | |
run: cat examples/v9/custom-command/results.json | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | |
start: | |
# example where instead of forming the default "cypress run ..." | |
# the user can specify their own command | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Custom tests 🧪 | |
uses: ./ | |
with: | |
command: npm run custom-test | |
working-directory: examples/custom-command | |
- name: Show saved file 🖨 | |
run: cat examples/custom-command/results.json |