Benefits of using Cypress in GitHub actions

Benefits of using Cypress in GitHub actions:

 https://ift.tt/2UgvLrq

If you work with anything related to frontend and you haven’t tried Cypress yet, I highly suggest you give it a try. 

But, if you use Cypress and don’t have a CI/CD pipeline set up yet, read forward for the reasons why using GitHub actions for it might be valuable.

GitHub Actions

The docs say:

Automate, customize, and execute your software development workflows right in your repository with GitHub Actions.

Cypress GitHub action – installation

Read these:

Benefits Of Integration

Prevention of merging broken code into the target branch

  • by leveraging code status checks of GitHub, there is the potential to list run Cypress checks and block PR merge if all checks are not passing


Image source: cypress docs

Software stability

  • as the status checks prevent merging broken code, there is potentially greater awareness across the development team towards software quality and stability
  • another potential outcome is that the team write more (and meaningful) tests because they see how much their code and tests have an impact on the complete codebase

Tracking code coverage

Easier onboarding of new developers to project standards

  • if a new team member has not used Cypress before, he/she will potentially see the value of tests sooner if they’re visible in the CI and they’re not required to be run manually
  • https://ift.tt/2UgvLrq

Developer’s ownership of CI/CD

  • In some organizations, CI/CD pipelines are the responsibility of the DevOps team
  • Delegating some complex pipelines or asking help from the DevOps team is great for collaboration, but it’s also really valuable skill knowing setting up the basic CI/CD flows
  • I personally think this is really important because the developer can then tweak the CI/CD pipeline to the project’s needs and potentially easily experiment with new features of relevant technologies on the projects (e.g. Cypress GitHub actions)

Summary

This post focuses (on very high level) on the integration of Cypress and GitHub actions, but can easily be applied to other testing frameworks such as Jest and other CI/CD services such as CircleCI or TravisCI.

I personally found it very convenient to use it with GitHub actions because it’s baked in the GitHub itself, but you can freely use other services that support this kind of automated flows.

Happy testing!

from Tumblr https://generouspiratequeen.tumblr.com/post/631859490162147328

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s