Thank you for your interest in contributing to the Cycle2Work! We love receiving contributions, and your work helps quality of this app. This doc will walk you through the easiest way to make a change and have it submitted to the Cycle2Work app.
The easiest workflow for adding a feature/fixing/docs/refactor a bug is to test it out on the traget app.
- Fork the Cycle2Work repo on github.
- Clone your fork of the Cycle2Work repo.
- Build and run app on your target app.
- Make the changes to your local copy of the Cycle2Work app, testing the changes in target app for example client app.
- Write a unit test for your change, if is possible. In client app one of the files in client_app/test/.
- Write a integration test for your change just if your target is client app and also if is possible. In client app one of the files in client_app/integration_test/.
- Update the CHANGELOG.md with a new version number, and a description of the change you're making for your target app.
- Update the version:
- Client app in the pubspec.yaml file to your new version.
- Server app in the package.json file to your new version.
- Make sure all the existing tests.
- Client app using the following command (from the root of the project): $ flutter test test/ and $ flutter test integration_test/.
- Server app used this doc for unit test
- Make sure the repo is formatted.
- Create a PR to merge the branch on your fork into Cycle2Work/main.
- Add owner as reviewers on the PR. I will take a look and add any comments. When the PR is ready to be merged, Thanks!