Skip to content

A GitHub action to run Cypress against a Vercel deployment

Notifications You must be signed in to change notification settings

mxkxf/vercel-cypress

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vercel-cypress

GitHub action which allows you to run Cypress tests against a Vercel preview deployment.

Prerequesites

This guide assumes you have set up the Vercel GitHub integration.

To use this action you will need to first generate a Vercel token.

Then you can either store this with your account or repository's secrets.

Usage

The following action will wait for the Vercel deployment to finish, then run Cypress but override the URL provided to Cypress' config to the latest Vercel deployment URL.

name: my-action

on: deployment

jobs:
  regression:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/vercel-cypress@v1
        with:
          vercel-token: ${{ secrets.VERCEL_TOKEN }}
          repo: my-repo

About

A GitHub action to run Cypress against a Vercel deployment

Resources

Stars

Watchers

Forks

Packages

No packages published