Skip to content

bahmutov/cypress-gh-action-example

Repository files navigation

cypress-gh-action-example renovate-app badge

Example running Cypress tests inside GitHub Action

Uses cypress-io/github-action to run Cypress end-to-end tests. Runs recorded at Cypress Dashboard

.github/workflows Status Description
artifacts.yml status Stores generated run video and any screenshots using CI artifacts
basic.yml status Basic tests example
chrome.yml status Runs tests using Chrome browser, rather than Electron
custom-container.yml status Runs tests using custom Docker image
main.yml status Runs tests on different versions of Node
merge.yml status Shows how to set custom commit message for pull requests workflows
separate-install.yml status Workflow where install and tests are in separate steps
separate-jobs.yml status Install dependencies and build the app in one job, test in another
serve.yml status Shows workflow with server start command and a separate config file
subfolder.yml status Installing and testing from a subfolder
tags.yml status Recorded runs with tags using different Node versions
timeouts.yml status Stops the job if it runs over the time limit
ubuntu.yml status Runs E2E tests on Ubuntu 16 and Ubuntu 18

Main

Example image of a test run across Node v12 and v14 recorded on Cypress Dashboard from the .github/workflows/main.yml workflow

Dashboard run recording

Note: see cypress.json where Cypress is configured to use the system Node, rather than the bundled Node version.

Artifacts

Example image showing how to download the test run videos from the action .github/workflows/artifacts.yml

Artifacts

More info

For more information see cypress-io/github-action and read Drastically Simplify Testing on CI with Cypress GitHub Action blog post.

About

Example running Cypress tests inside GitHub Action

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •