Configures Github Actions workflow for continuous integration
This pull request follows the instructions in the article Building and testing Node.js to configure a GitHub Actions CI job for this repository. The job is configured to run against pushes and pull requests to the main and develop branches. It is configured to cache dependencies between runs to minimize runtime and network usage.
To make the workflow run smoothly, a package.json file was created at the top level of the repository. It uses npm workspaces to indicate dependence on all the modules it contains, and allows all tests to be run at once from the top level using npm test.
Since there is a top level package file now, it also applies prettier as a pre-commit hook using Husky to keep files in the repository formatted.
Configures Github Actions workflow for continuous integration
This pull request follows the instructions in the article Building and testing Node.js to configure a GitHub Actions CI job for this repository. The job is configured to run against pushes and pull requests to the main and develop branches. It is configured to cache dependencies between runs to minimize runtime and network usage.
To make the workflow run smoothly, a package.json file was created at the top level of the repository. It uses npm workspaces to indicate dependence on all the modules it contains, and allows all tests to be run at once from the top level using
npm test
.Since there is a top level package file now, it also applies prettier as a pre-commit hook using Husky to keep files in the repository formatted.
Closes #24