Run GitHub build tests locally? #8035
Replies: 2 comments 1 reply
|
If you have node.js and npm installed you can do |
|
yeah, both jobs in .github/workflows/nodejs.yml run fine locally. the build job first. clone with submodules or it falls over on the apps submodule: npm test is the one that catches most app problems, it builds and checks every app and widget. the functional tests are a separate job and they need EspruinoWebIDE checked out next to your BangleApps folder, pinned to the same commit ci uses: then from BangleApps, per app that has a test.json: ci only runs that for apps you touched and only if they have a test.json, so if you're changing one app you can skip straight to that line. --verbose is worth it, it prints what the app test is doing when it hangs. the workflow file is short and it's the source of truth, worth reading once. |
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to run the tests that GitHub does when I push to the BangleApps repo on my local machine? I'd rather know about and fix the issues it finds before pushing rather than only finding out afterward. But I haven't been able to figure out how to do that.
All reactions