forked from MikeMcC399/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (67 loc) · 2.2 KB
/
example-debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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:
- 'master'
pull_request:
workflow_dispatch:
jobs:
action-debug:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- 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-24.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:*'
install-binary-debug:
runs-on: ubuntu-24.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*'