Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Fix the storybook CI #4452

Merged
merged 23 commits into from
Jun 21, 2023
Merged

🔧 Fix the storybook CI #4452

merged 23 commits into from
Jun 21, 2023

Conversation

thesan
Copy link
Member

@thesan thesan commented Jun 20, 2023

Parts of:

This PR fixes the new CI for PRs made from forks, which basically will be all PRs made to Pioneer very soon.

E.g this is why the CI failed on #4453.

The previous version required secrets to use the Vercel CLI, but secrets are not available on workflows triggered from a fork. So now the CI generates the Storybook deployment URL following the Vercel doc and relies on one of the few public endpoints from the Vercel REST API to wait for the deployment to complete.

I couldn't find a way to rely on the deployment_status trigger like in the Storybbok doc example because of the 2 other Vercel preview deployments which are almost always slower and because GH only looks at the latest run of a given job (even if the job was skipped) and ignore the previous ones.

@vercel
Copy link

vercel bot commented Jun 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Jun 21, 2023 3:31pm
pioneer-2 ✅ Ready (Inspect) Visit Preview Jun 21, 2023 3:31pm
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Jun 21, 2023 3:31pm

@thesan thesan marked this pull request as draft June 20, 2023 11:43
@thesan thesan marked this pull request as ready for review June 21, 2023 15:28
Copy link
Contributor

@traumschule traumschule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs testing

@thesan
Copy link
Member Author

thesan commented Jun 21, 2023

needs testing

Yeah I had to do a lot of testing for this:
Screenshot from 2023-06-21 21-14-41

Using this PR and #4454. I also tested the push trigger which get called after PRs are merged. I think it should be all good now 🤞 writing GH actions is the worst !

@thesan thesan merged commit 06f68ac into dev Jun 21, 2023
@thesan thesan deleted the fix/storybook-ci branch June 21, 2023 19:27
@thesan thesan mentioned this pull request Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants