Last active
August 9, 2024 18:16
-
-
Save snelson82/132b92632bb4cdd5190979b03dedab2a to your computer and use it in GitHub Desktop.
Alias to run full set of tasks in preparation for opening a pull request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pr-full-prep='\ | |
(time ( | |
echo "==> Running mix format" && \ | |
mix format && \ | |
echo "==> Ensuring all files are formatted" && \ | |
mix format --check-formatted && \ | |
echo "==> Cleaning unused deps" && \ | |
mix deps.clean --unlock --unused && \ | |
echo "==> Checking for unused deps" && \ | |
mix deps.unlock --check-unused && \ | |
echo "==> Running Credo (strict enabled)" && \ | |
mix credo --strict && \ | |
echo "==> Compiling (warnings as errors enabled)" && \ | |
mix compile --warnings-as-errors --force && \ | |
echo "==> Running doctor" && \ | |
mix doctor && \ | |
echo "==> Running tests" && \ | |
mix test && \ | |
echo "==> Running dialyzer (format dialyxir enabled)" && \ | |
mix dialyzer --format dialyxir | |
)) | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment