supabase / setup-cli

A GitHub action for interacting with your Supabase projects using the CLI.
MIT License
120 stars 16 forks source link

Check that supabase can actually start #59

Closed aslakhellesoy closed 2 years ago

aslakhellesoy commented 2 years ago

What kind of change does this PR introduce?

Testing that supabase can start

What is the current behavior?

It doesn't start. See https://github.com/supabase/cli/issues/286#issuecomment-1262150912

What is the new behavior?

This build will fail when supabase can't start - rather than the problem going unnoticed.

I also recommend setting a cron schedule to run this nightly.

aslakhellesoy commented 2 years ago

Can someone from supabase please approve running the workflows on this PR?

aslakhellesoy commented 2 years ago

I added supabase init. Could you please approve running the workflow again?

ntoombs19 commented 2 years ago

It's strange to me that this wasn't already in the test workflow considering they recommend it in their own CI/CD documentation.

aslakhellesoy commented 2 years ago

This doesn't yet reproduce the error I wanted to reproduce. The build is now failing with:

Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

If someone can fix that, the original issue might surface...

sweatybridge commented 2 years ago

Thanks for helping to reproduce this issue. I'm back at my laptop now to look into this more.

sweatybridge commented 2 years ago

I've created a new workflow to run supabase start on a periodic schedule. This should catch issues like this in the future. Will close this in favour of https://github.com/supabase/setup-cli/pull/60.