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 cypress debug to example-debug workflow #1259

Merged
Merged
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
35 changes: 33 additions & 2 deletions .github/workflows/example-debug.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:*'