surrealdb / setup-surreal

GitHub Action for running SurrealDB in CI environments
https://surrealdb.com
Apache License 2.0
9 stars 1 forks source link

Running as a service #5

Open szabgab opened 1 month ago

szabgab commented 1 month ago

If I understand correctly, the current recommendation (in the README in this repo and in https://surrealdb.com/docs/surrealdb/tutorials/using-github-actions ) installs surrealdb on the same instance where my code runs.

I think the usual recommendation for other databases is to run them as a service container It would be nice to see the recommended configuration to use SurrealDB on GitHub Actions as a service.

Especially as I just got this warning:

"You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 19 MB" see

So SurrealDB and my code take up almost all the free space.

welpie21 commented 1 month ago

Heey @szabgab, Thanks for opening this issue.

I had a quick look in the service container and it's quite interesting. I will look into the surreal-setup this week and work on the needed changes. I'll keep you updated.

szabgab commented 1 month ago

Thanks. I have a bunch of examples here that include both the service and a client that should be the code under test accessing the database. e.g. for PostgreSQL, MySQL, Redis, Solr.

welpie21 commented 1 month ago

Thanks. I have a bunch of examples here that include both the service and a client that should be the code under test accessing the database. e.g. for PostgreSQL, MySQL, Redis, Solr.

Thanks that should help a lot ☺️