Skip to content

Commit 5b741b0

Browse files
authored
refactor: sort and comment action.yml options (#1434)
1 parent 34745aa commit 5b741b0

File tree

1 file changed

+70
-55
lines changed

1 file changed

+70
-55
lines changed

action.yml

Lines changed: 70 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,115 @@
1-
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions
1+
# https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions
22
name: 'Cypress.io'
33
description: 'GitHub Action for running Cypress end-to-end and component tests'
44
author: 'Cypress-io'
55
inputs:
6-
record:
7-
description: 'Sends test results to Cypress Cloud'
8-
required: false
9-
default: false
6+
# inputs passed to Cypress Module API https://on.cypress.io/module-api
7+
# Action options names are the same as Cypress Module API options names, except where noted
8+
# and Cypress CLI option names https://on.cypress.io/command-line#Options are used instead
109
auto-cancel-after-failures:
1110
description: 'Overrides the global Cloud configuration to set the failed test threshold for auto cancellation or to disable auto cancellation when recording to the Cloud (requires Cypress 12.x or later)'
1211
required: false
12+
browser:
13+
description: 'Name of the browser to use'
14+
required: false
15+
ci-build-id:
16+
description: 'ID associates multiple CI machines to one test run'
17+
required: false
18+
component: # translates to Module API testingType e2e (default / false) or component (true)
19+
description: 'Lets the action know that Cypress is running component tests and not e2e tests'
20+
required: false
21+
default: false
1322
config:
1423
description: 'Set configuration values. Separate multiple values with a comma. The values set here override any values set in your configuration file.'
1524
required: false
1625
config-file:
17-
description: 'Path to the cypress config file where configuration values are set.'
26+
description: 'Path to the cypress config file where configuration values are set'
1827
required: false
1928
default: ''
2029
env:
2130
description: 'Sets Cypress environment variables'
2231
required: false
23-
browser:
24-
description: 'Name of the browser to use'
25-
required: false
26-
command:
27-
description: 'Command that overrides cypress run'
32+
group:
33+
description: 'Group setting for recording tests'
2834
required: false
29-
start:
30-
description: 'Command for starting local server in the background'
35+
headed:
36+
description: 'Whether or not to use headed mode'
3137
required: false
32-
start-windows:
33-
description: 'A different start command on Windows'
38+
# headless: # not used (default and equivalent to headed: false)
39+
# key: # not used. Pass this option using CYPRESS_RECORD_KEY as a secret environment variable
40+
# exit: # not used
41+
parallel:
42+
description: 'Whether or not to load balance recorded tests using multiple containers'
3443
required: false
35-
build:
36-
description: 'Command to run build step before starting tests'
44+
# port: # not used
45+
project:
46+
description: 'Path of project to run'
3747
required: false
38-
install:
39-
description: 'Whether or not to run install'
48+
quiet:
49+
description: 'Whether or not to silence any Cypress specific output from stdout'
4050
required: false
41-
install-command:
42-
description: 'Custom install command to use'
51+
record:
52+
description: 'Sends test results to Cypress Cloud'
4353
required: false
44-
runTests:
45-
description: 'Whether or not to run tests'
54+
default: false
55+
# reporter: # not used
56+
# reporterOptions: # not used
57+
# runnerUi: # not used
58+
# slowTestThreshold # not used
59+
spec:
60+
description: 'Provide specific specs to run'
4661
required: false
47-
wait-on:
48-
description: 'Local server URL to wait for'
62+
tag:
63+
description: 'Tag setting for tests'
4964
required: false
50-
wait-on-timeout:
51-
description: 'Amount of time to wait for wait-on url to be available'
65+
#
66+
# inputs used internally by action, not passed to Cypress Module API
67+
#
68+
build:
69+
description: 'Command to run build step before starting tests'
5270
required: false
53-
parallel:
54-
description: 'Whether or not to load balance tests using multiple containers'
71+
cache-key:
72+
description: 'Custom cache key'
5573
required: false
56-
group:
57-
description: 'Group setting for tests'
74+
command: # Using this option overrides passing inputs to the Cypress Module API
75+
description: 'Command that overrides cypress run'
5876
required: false
59-
tag:
60-
description: 'Tag setting for tests'
77+
command-prefix:
78+
description: 'You can prefix the default test command using the command-prefix option.'
6179
required: false
62-
working-directory:
63-
description: 'Working directory containing Cypress folder'
80+
install:
81+
description: 'Whether or not to run install'
6482
required: false
65-
headed:
66-
description: 'Whether or not to use headed mode'
83+
install-command:
84+
description: 'Custom install command to use'
6785
required: false
6886
publish-summary:
6987
description: 'Whether or not to publish a job summary'
7088
required: false
7189
default: true
72-
summary-title:
73-
description: 'Title for job summary'
74-
required: false
75-
spec:
76-
description: 'Provide a specific specs to run'
90+
runTests:
91+
description: 'Whether or not to run tests'
7792
required: false
78-
project:
79-
description: 'Path of project to run'
93+
start:
94+
description: 'Command for starting local server in the background'
8095
required: false
81-
command-prefix:
82-
description: 'You can prefix the default test command using the command-prefix option.'
96+
start-windows:
97+
description: 'A different start command on Windows'
8398
required: false
84-
ci-build-id:
85-
description: 'ID associates multiple CI machines to one test run'
99+
summary-title:
100+
description: 'Title for job summary'
86101
required: false
87-
cache-key:
88-
description: 'Custom cache key'
102+
wait-on:
103+
description: 'Local server URL to wait for'
89104
required: false
90-
quiet:
91-
description: 'Whether or not to silence any Cypress specific output from stdout'
105+
wait-on-timeout:
106+
description: 'Amount of time to wait for wait-on URL to be available'
92107
required: false
93-
component:
94-
description: 'Lets the action know that Cypress is running component tests and not e2e tests'
108+
working-directory:
109+
description: 'Working directory containing Cypress folder'
95110
required: false
96-
default: false
97111
outputs:
112+
# derived from Cypress Module API https://on.cypress.io/module-api#Results runUrl
98113
dashboardUrl:
99114
description: 'Cypress Cloud URL if the run was recorded (deprecated)'
100115
resultsUrl:

0 commit comments

Comments
 (0)