Skip to content
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

test: add binary install debug to example-debug workflow #1262

Merged
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
20 changes: 0 additions & 20 deletions .github/workflows/example-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,3 @@ jobs:
with:
working-directory: examples/basic
build: npx cypress info

# skips the binary installation
# shows that the job should not fail
# https://github.com/cypress-io/github-action/issues/327
basic-without-binary-install:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cypress tests
uses: ./
with:
working-directory: examples/basic
# since we do not install Cypress
# we should not attempt to run tests
runTests: false
env:
# skip the binary install
CYPRESS_INSTALL_BINARY: 0
26 changes: 26 additions & 0 deletions .github/workflows/example-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,29 @@ jobs:
# You can also combine the two debug options into one line
# to get both action debug and Cypress debug output
# DEBUG: '@cypress/github-action, cypress:*'

install-binary-debug:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cypress npm install
# Install only the Cypress npm module
uses: ./
with:
working-directory: examples/basic
runTests: false
env:
# Skip the Cypress binary installation
CYPRESS_INSTALL_BINARY: 0

- name: Cypress binary install
# Now install the Cypress binary with debug enabled
uses: ./
with:
working-directory: examples/basic
# use --force option to override any cached Cypress binary version
command: npx cypress install --force
env:
DEBUG: 'cypress:cli*'