Development
So, you want to hack on GraphQL Ruby! Here are some tips for getting started.
- Setup your development environment
- Run tests
- Debug
- Coding guidelines
- Releasing
Setup
Follow the steps below to setup wipe_out locally:
- Make sure you're running on Ruby 3.0.0 or newer
- sqlite is installed (required for tests)
git clone https://github.com/GlobalAppTesting/wipe_out
cd wipe_out
bundle install
Run tests
./bin/rspec
Debug
By default pry
is included so feel free to run tests and put binding.pry
wherever you like.
Coding guidelines
- Please make sure to run
./bin/standardrb --fix
- Markdown files are linted too via markdownlint
- Each change should be covered by tests and add CHANGELOG info
Releasing
Releasing will be done manually for now.
- Bump version in
lib/wipe_out/version.rb
- Ensure CHANGELOG.md is matching new version and has details about published changes. Make sure that breaking changes contain update instructions.
- Commit all changes
git commit -m "Release: vX.Y.Z"
- Tag commit
git tag vX.Y.Z
- Push changes and tag
git push origin master
git push origin vX.Y.Z
- (TODO) Publish release on Rubygems