Skip to content

Commit

Permalink
test: add cypress debug to example-debug workflow (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored Sep 17, 2024
1 parent ff18d0a commit ae6a43c
Showing 1 changed file with 33 additions and 2 deletions.
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:*'

0 comments on commit ae6a43c

Please sign in to comment.