puter
puter copied to clipboard
CI: Add a simple test workflow
Just to make sure everything works fine on all major node versions (>= v18)
Thanks for your contribution! I'm going to leave this open for a bit to give us time to get the npm run test tests working. The backend tests should also be added here but I'm unsure if they currently follow the right conventions (i.e. exit code) to be included here.
Backend tests are run with: node src/backend/tools/test.js - that script invokes a "test kernel" which registers all the services (just like Puter's kernel does), and runs the _test method on the ones which implement it.
I updated the text command a while ago and it should be working, so I'm gonna try this out now.