Last active
April 18, 2024 23:42
-
-
Save snelson82/4cafaa6a6fbcac7a91df28adf10e5938 to your computer and use it in GitHub Desktop.
Alias to run various 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-prep=' | |
(time ( | |
echo "==> Fetching deps" && \ | |
time mix deps.get && \ | |
echo "==> Running mix format" && \ | |
time mix format && \ | |
echo "==> Checking if formatted" && \ | |
time mix format --check-formatted && \ | |
echo "==> Cleaning unused deps" && \ | |
time mix deps.clean --unlock --unused && \ | |
echo "==> Checking for unused deps" && \ | |
time mix deps.unlock --check-unused && \ | |
echo "==> Running Credo" && \ | |
time mix credo --strict && \ | |
echo "==> Compiling with warnings as errors" && \ | |
time mix compile --warnings-as-errors --force && \ | |
echo "==> Running doctor" && \ | |
time mix doctor && \ | |
echo "==> Running tests" && \ | |
time mix test | |
)) | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment