Thank you for your interest in contributing to the Hooks gem! This document outlines how to contribute to the project, including setting up your development environment, running tests, and releasing new versions.
To get your development environment set up, you simply need to run the following command:
script/bootstrapNote: This command assumes you have a Ruby version manager like
rbenvinstalled.
After writing some code or making changes, you will need to run the following commands to ensure everything is working correctly:
-
Run unit tests:
script/test
-
Run integration tests:
script/integration
-
Run acceptance tests:
script/acceptance
This project also requires that the linter must be run and pass before any code is committed. You can run the linter with the following command (with autocorrect enabled):
script/lint -A- Update
lib/hooks/version.rbwith the next version number - Run
bundle installto update gem version contained in the lockfile - Commit your changes and open a pull request
- When the pull request is approved and merged into
main, the.github/workflows/release.ymlworkflow will automatically run to release the new version to RubyGems and GitHub Packages 🎉.