Skip to content

Commit

Permalink
test: add binary install debug to example-debug workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed Sep 18, 2024
1 parent ae6a43c commit 290544a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
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*'

0 comments on commit 290544a

Please sign in to comment.