diff --git a/README.md b/README.md index 4ac5e181b..122835b5d 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Amber is a community effort and we want You to be part of it. [Join Amber Commun 1. Fork it https://github.com/amberframework/amber/fork 2. Create your feature branch `git checkout -b my-new-feature` -3. Write and execute specs `crystal spec` +3. Write and execute specs and formatting checks `./bin/amber_spec` 4. Commit your changes `git commit -am 'Add some feature'` 5. Push to the branch `git push origin my-new-feature` 6. Create a new Pull Request diff --git a/bin/amber_spec b/bin/amber_spec new file mode 100755 index 000000000..031def03c --- /dev/null +++ b/bin/amber_spec @@ -0,0 +1,10 @@ +#!/bin/sh + +echo "Running './ameba':" +$(dirname "$0")/ameba + +echo "\nRunning 'crystal tool --format --check':" +crystal tool format --check + +echo "\nRunning 'crystal spec':" +crystal spec