RaythaHQ / raytha

Raytha is a powerful CMS with an easy-to-use interface and fast performance. It offers custom content types, a template engine, and various access controls. It supports multiple storage providers and an automatically generated REST API. Upgrade your development workflow with Raytha.
MIT License
155 stars 30 forks source link

Add github action to automatically build and run tests #76

Closed apexdodge closed 1 year ago

apexdodge commented 1 year ago

Since we have made progress on #10, we should consider adding a Github Action that automatically builds and runs the tests when pushed. Then we can get the little badges that says "Builds successful" or "Tests passed"

I like what strapi does: https://github.com/strapi/strapi

main = current production release-vX.X.X = next minor release (branch off main for minor fixes and minor features) dev = serves as trunk for major feature branches and PRs. Eventually turns into a release-v.X.X.X branch when ready to roll out a major release.

smd-11 commented 1 year ago

Hi @apexdodge ,

Added a Github Action to build and run tests when pushed.

For now i have tested with branch i have created.

Check this : https://github.com/smd-11/raytha/actions/workflows/tests.yml and let me know if any improvements needed

apexdodge commented 1 year ago

@smd-11

🎉 Please update the branches in tests.yml to be main and dev and then go ahead and submit PR.

After that, I'll update the readme myself to insert the badge of the workflow status:

smd-11 commented 1 year ago

Done.

apexdodge commented 1 year ago

137 worked great.

Badge added to readme on dev.

Thank you for your contribution