chromaui / chromatic-e2e

Archive end-to-end tests to be replayed in Storybook and Chromatic
MIT License
13 stars 3 forks source link

Update test and release workflows #84

Closed tevanoff closed 5 months ago

tevanoff commented 5 months ago

Issue: #

What Changed

Using workflow_run for the event trigger for the test and release workflows was not great because they ran in the context of the main branch and did not show up on the PR in question.

This PR converts all of the current tasks to reusable workflows, and introduces two main workflows to coordinate everything that needs to run. pull-request-workflow.yml handles running the tests and cutting canary releases, while main-workflow.yml handles running tests and cutting real releases when branches are merged to main.

How to test

Take a gander at all those status checks attached to the PR! ✅