isomerpages / isomerpages-template

The central template that all the Isomer sites are pulling from
Other
20 stars 39 forks source link

feat(ci): add percy for visual regression testing #329

Closed dcshzj closed 1 year ago

dcshzj commented 1 year ago

This adds a new CI/CD workflow to perform regression testing on our template using percy. The rough steps are:

  1. Clone and build the template-regression-test repo in the same way that our other sites are built, using the next-gen-staging branch of this template repository.
  2. Take snapshots of the built site using percy on the generated _site folder.

Note: I am intentionally not force pushing to next-gen-staging as it is already done through the deployment job. Also, we are limited to only 25,000 snapshots per month, which might be easily hit if we have many pages on the regression template. For now it should be fine but we will fine-tune if we run into this limit.