Integrating With GitHub Actions
Lost Pixel has first-class support for GitHub Actions, offering a dedicated action in the GitHub Action Marketplace:
As outlined in modes, Lost Pixel can run in different modes or all of them simultaneously. You would need to build the respective provider and serve it in the action to make it available for the Lost Pixel, e.g. build & serve storybook, build & serve ladle, build & serve next app
Here's an example of a complete workflow file that builds the Storybook before continuing with Lost Pixel. To make it run, you need to place vis-reg-test.yml
it into .github/workflows
at the root of your project. This will execute the Lost Pixel visual regression tests on every commit:
Using Lost Pixel in Platform Mode, you need to provide the LOST_PIXEL_API_KEY
to the action:
Last updated