Day 8: Run E2E tests with Cypress
December 08, 2019
cypress-io/github-action is the home for running E2E tests with Cypress in GitHub Actions. by Jason Etcovich is an action which upload files into a release.
Example Usage
You could run the E2E tests on every push and if any issues arise, it will be found in the logs. All that is needed is to checkout the repo and then run the action.
name: End-to-end testson: [push]jobs:cypress-run:runs-on: ubuntu-lateststeps:- name: Checkoutuses: actions/checkout@v1# Install NPM dependencies, cache them correctly# and run all Cypress tests- name: Cypress runuses: cypress-io/github-action@v1
The Cypress team as well provides plenty of various optional inputs and workflows in their README. From submitting, to their dashboards, changing to custom configs or directories, running in parallel, and more, it provides a powerful structure to running E2E tests in CI without any hassle of working around the platform.