First-pass GitHub Actions workflow for building/testing compromise#679
Conversation
This is an attempt at a very basic build/test workflow for GitHub Actions that can be triggered on any push (to master, or any branches or PRs). The set of tests run may be excessive, as it wasn't clear to me what the difference between the various tests listed in `scripts` in `pacakge.json` meant. In addtion, some missing devDependencies (eslint, nyc, tap-spec, ts-node, and typescript) have been added to ensure that the tests can all run (even if they aren't all passing at the moment). Finally, a new `scripts/plugins.js` was added to perform arbitrary commands for each plugin. The hope is that `scripts/plugin-check.js` can eventually be deprecated and replaced by (for example) `npm run plugins:build`.
|
Hey, @spencermountain ... just found out that the GitHub actions will run in my fork. Let me vet them there before you merge this! (I'll remove the [WIP] tag and comment once it's actually ready...) |
|
Okay.... here's where this stands: at present, the workflow passes as long as With the caveat that there may be changes in dev that need testing tweaks before the basic tests can be included, I think this is "runnable" by default in the compromise repo. At the very least, it should be possible to include this in parallel with the Travis CI pipeline that already in place. Because of the way GitHub Actions work, merely including |
|
YESSSSSSS |
This is an attempt at a very basic build/test workflow for GitHub Actions that can be triggered on any push (to master, or any branches or PRs). The set of tests run may be excessive, as it wasn't clear to me what the difference between the various tests listed in
scriptsinpacakge.jsonmeant.In addtion, some missing devDependencies (eslint, nlp-corpus, nyc, tap-spec, ts-node, and typescript) have been added to ensure that the tests can all run (even if they aren't all passing at the moment).
Finally, a new
scripts/plugins.jswas added to perform arbitrary commands for each plugin. The hope is thatscripts/plugin-check.jscan eventually be deprecated and replaced by (for example)npm run plugins:build.