From 157a6e1696d128621408b190d40cca3d722120fc Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:22:58 +0200 Subject: [PATCH] test: add cypress debug to example-debug workflow --- .github/workflows/example-debug.yml | 35 +++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example-debug.yml b/.github/workflows/example-debug.yml index 79383f3d2..403ae1c02 100644 --- a/.github/workflows/example-debug.yml +++ b/.github/workflows/example-debug.yml @@ -1,4 +1,15 @@ name: example-debug + +# This workflow demonstrates how to use the DEBUG environment variable to get debug output. +# See also https://github.com/cypress-io/github-action/blob/master/README.md#debugging and +# https://on.cypress.io/troubleshooting#Print-DEBUG-logs + +# In the example jobs, the action is called with +# uses: ./ +# which runs the action code from the current branch. +# If you copy this workflow to another repo, replace the above line with +# uses: cypress-io/github-action@v6 + on: push: branches: @@ -7,15 +18,35 @@ on: workflow_dispatch: jobs: - debug-logs: + action-debug: runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 - - name: Cypress debug logs 📝 + - name: Cypress action debug logs uses: ./ env: + # This enables debug logging output for the action DEBUG: '@cypress/github-action' with: working-directory: examples/basic + + cypress-debug: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Cypress debug logs + uses: ./ + env: + # This enables debug logging output for Cypress + # See https://on.cypress.io/troubleshooting#Log-sources for other filtered DEBUG values + DEBUG: 'cypress:*' + with: + working-directory: examples/basic + + # 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:*'