TecKnow / muster-tools

A package for assigning players to tables at multi-table, walk-in gaming events.
GNU General Public License v3.0
0 stars 0 forks source link

GitHub actions #38

Closed TecKnow closed 3 years ago

TecKnow commented 3 years ago

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