|
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 |
2 | 2 | name: 'Cypress.io'
|
3 | 3 | description: 'GitHub Action for running Cypress end-to-end and component tests'
|
4 | 4 | author: 'Cypress-io'
|
5 | 5 | 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 |
10 | 9 | auto-cancel-after-failures:
|
11 | 10 | 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)'
|
12 | 11 | 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 |
13 | 22 | config:
|
14 | 23 | description: 'Set configuration values. Separate multiple values with a comma. The values set here override any values set in your configuration file.'
|
15 | 24 | required: false
|
16 | 25 | 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' |
18 | 27 | required: false
|
19 | 28 | default: ''
|
20 | 29 | env:
|
21 | 30 | description: 'Sets Cypress environment variables'
|
22 | 31 | 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' |
28 | 34 | 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' |
31 | 37 | 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' |
34 | 43 | 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' |
37 | 47 | 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' |
40 | 50 | required: false
|
41 |
| - install-command: |
42 |
| - description: 'Custom install command to use' |
| 51 | + record: |
| 52 | + description: 'Sends test results to Cypress Cloud' |
43 | 53 | 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' |
46 | 61 | required: false
|
47 |
| - wait-on: |
48 |
| - description: 'Local server URL to wait for' |
| 62 | + tag: |
| 63 | + description: 'Tag setting for tests' |
49 | 64 | 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' |
52 | 70 | required: false
|
53 |
| - parallel: |
54 |
| - description: 'Whether or not to load balance tests using multiple containers' |
| 71 | + cache-key: |
| 72 | + description: 'Custom cache key' |
55 | 73 | 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' |
58 | 76 | 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.' |
61 | 79 | required: false
|
62 |
| - working-directory: |
63 |
| - description: 'Working directory containing Cypress folder' |
| 80 | + install: |
| 81 | + description: 'Whether or not to run install' |
64 | 82 | required: false
|
65 |
| - headed: |
66 |
| - description: 'Whether or not to use headed mode' |
| 83 | + install-command: |
| 84 | + description: 'Custom install command to use' |
67 | 85 | required: false
|
68 | 86 | publish-summary:
|
69 | 87 | description: 'Whether or not to publish a job summary'
|
70 | 88 | required: false
|
71 | 89 | 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' |
77 | 92 | required: false
|
78 |
| - project: |
79 |
| - description: 'Path of project to run' |
| 93 | + start: |
| 94 | + description: 'Command for starting local server in the background' |
80 | 95 | 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' |
83 | 98 | 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' |
86 | 101 | required: false
|
87 |
| - cache-key: |
88 |
| - description: 'Custom cache key' |
| 102 | + wait-on: |
| 103 | + description: 'Local server URL to wait for' |
89 | 104 | 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' |
92 | 107 | 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' |
95 | 110 | required: false
|
96 |
| - default: false |
97 | 111 | outputs:
|
| 112 | + # derived from Cypress Module API https://on.cypress.io/module-api#Results runUrl |
98 | 113 | dashboardUrl:
|
99 | 114 | description: 'Cypress Cloud URL if the run was recorded (deprecated)'
|
100 | 115 | resultsUrl:
|
|
0 commit comments