From 290544a8b1e4a98f197e3b0a88be79ef1b7c36ed Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:14:07 +0200 Subject: [PATCH] test: add binary install debug to example-debug workflow --- .github/workflows/example-basic.yml | 20 -------------------- .github/workflows/example-debug.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/.github/workflows/example-basic.yml b/.github/workflows/example-basic.yml index 90229818e..83a914149 100644 --- a/.github/workflows/example-basic.yml +++ b/.github/workflows/example-basic.yml @@ -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 diff --git a/.github/workflows/example-debug.yml b/.github/workflows/example-debug.yml index 403ae1c02..c0d45bf26 100644 --- a/.github/workflows/example-debug.yml +++ b/.github/workflows/example-debug.yml @@ -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*'