Skip to content
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
125 changes: 70 additions & 55 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,100 +1,115 @@
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions
# https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions
name: 'Cypress.io'
description: 'GitHub Action for running Cypress end-to-end and component tests'
author: 'Cypress-io'
inputs:
record:
description: 'Sends test results to Cypress Cloud'
required: false
default: false
# inputs passed to Cypress Module API https://on.cypress.io/module-api
# Action options names are the same as Cypress Module API options names, except where noted
# and Cypress CLI option names https://on.cypress.io/command-line#Options are used instead
auto-cancel-after-failures:
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)'
required: false
browser:
description: 'Name of the browser to use'
required: false
ci-build-id:
description: 'ID associates multiple CI machines to one test run'
required: false
component: # translates to Module API testingType e2e (default / false) or component (true)
description: 'Lets the action know that Cypress is running component tests and not e2e tests'
required: false
default: false
config:
description: 'Set configuration values. Separate multiple values with a comma. The values set here override any values set in your configuration file.'
required: false
config-file:
description: 'Path to the cypress config file where configuration values are set.'
description: 'Path to the cypress config file where configuration values are set'
required: false
default: ''
env:
description: 'Sets Cypress environment variables'
required: false
browser:
description: 'Name of the browser to use'
required: false
command:
description: 'Command that overrides cypress run'
group:
description: 'Group setting for recording tests'
required: false
start:
description: 'Command for starting local server in the background'
headed:
description: 'Whether or not to use headed mode'
required: false
start-windows:
description: 'A different start command on Windows'
# headless: # not used (default and equivalent to headed: false)
# key: # not used. Pass this option using CYPRESS_RECORD_KEY as a secret environment variable
# exit: # not used
parallel:
description: 'Whether or not to load balance recorded tests using multiple containers'
required: false
build:
description: 'Command to run build step before starting tests'
# port: # not used
project:
description: 'Path of project to run'
required: false
install:
description: 'Whether or not to run install'
quiet:
description: 'Whether or not to silence any Cypress specific output from stdout'
required: false
install-command:
description: 'Custom install command to use'
record:
description: 'Sends test results to Cypress Cloud'
required: false
runTests:
description: 'Whether or not to run tests'
default: false
# reporter: # not used
# reporterOptions: # not used
# runnerUi: # not used
# slowTestThreshold # not used
spec:
description: 'Provide specific specs to run'
required: false
wait-on:
description: 'Local server URL to wait for'
tag:
description: 'Tag setting for tests'
required: false
wait-on-timeout:
description: 'Amount of time to wait for wait-on url to be available'
#
# inputs used internally by action, not passed to Cypress Module API
#
build:
description: 'Command to run build step before starting tests'
required: false
parallel:
description: 'Whether or not to load balance tests using multiple containers'
cache-key:
description: 'Custom cache key'
required: false
group:
description: 'Group setting for tests'
command: # Using this option overrides passing inputs to the Cypress Module API
description: 'Command that overrides cypress run'
required: false
tag:
description: 'Tag setting for tests'
command-prefix:
description: 'You can prefix the default test command using the command-prefix option.'
required: false
working-directory:
description: 'Working directory containing Cypress folder'
install:
description: 'Whether or not to run install'
required: false
headed:
description: 'Whether or not to use headed mode'
install-command:
description: 'Custom install command to use'
required: false
publish-summary:
description: 'Whether or not to publish a job summary'
required: false
default: true
summary-title:
description: 'Title for job summary'
required: false
spec:
description: 'Provide a specific specs to run'
runTests:
description: 'Whether or not to run tests'
required: false
project:
description: 'Path of project to run'
start:
description: 'Command for starting local server in the background'
required: false
command-prefix:
description: 'You can prefix the default test command using the command-prefix option.'
start-windows:
description: 'A different start command on Windows'
required: false
ci-build-id:
description: 'ID associates multiple CI machines to one test run'
summary-title:
description: 'Title for job summary'
required: false
cache-key:
description: 'Custom cache key'
wait-on:
description: 'Local server URL to wait for'
required: false
quiet:
description: 'Whether or not to silence any Cypress specific output from stdout'
wait-on-timeout:
description: 'Amount of time to wait for wait-on URL to be available'
required: false
component:
description: 'Lets the action know that Cypress is running component tests and not e2e tests'
working-directory:
description: 'Working directory containing Cypress folder'
required: false
default: false
outputs:
# derived from Cypress Module API https://on.cypress.io/module-api#Results runUrl
dashboardUrl:
description: 'Cypress Cloud URL if the run was recorded (deprecated)'
resultsUrl:
Expand Down