Graphiql: Create a GraphiQL PR deploy for testing?

Created on 10 May 2019  路  10Comments  路  Source: graphql/graphiql

Using something like Netlify there could be a working build of every PR to this repo with a static deploy of graphiql which could hook up to the Star Wars API?

All 10 comments

great idea! as in https://graphql.org/swapi-graphql/?
do we want this for each _release_ or every _build_?

Every PR should get a build, for example Artsy deploys an instance of storybook js for every PR so you can preview the changes live. e.g. https://github.com/artsy/reaction/pull/2392#issuecomment-491077963

E.g. this PR https://github.com/graphql/graphiql/pull/781#issuecomment-491115471 would have been trivial to test because it would have a working copy of GraphiQL linked in the PR

@orta you wanna take this on? Netlify would be a perfect candidate for this

Alright, yeah, I've done this on my own fork in https://github.com/orta/graphiql/pull/1 (sorry, #815 )

I'll request netlify to be added to this org (/cc admins @leebyron ) then once that's approved I can move it over.

looking good!

i would normally just use gh-pages, but netlify allows us to seamlessly host the build artifacts without committing them to source or a gh-pages branch

You can only have one gh-pages deploy, not many (e.g. per PR) - so, it wouldn't be feasible to do it on a per-PR basis 馃憤

ohh! i see what you mean. i thought you meant a build of every PR merge. so you mean one for each PR! even better.

OK, this now has a PR to the monorepo branch - https://github.com/acao/graphiql/pull/6

thanks @orta ! this is a great feature. has made the refactoring effort a lot easier

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ElijahLynn picture ElijahLynn  路  10Comments

asiandrummer picture asiandrummer  路  10Comments

timsuchanek picture timsuchanek  路  15Comments

okorz001 picture okorz001  路  18Comments

sashahavia picture sashahavia  路  50Comments