Skip to content

Instantly share code, notes, and snippets.

@snelson82
Last active August 9, 2024 18:16
Show Gist options
  • Save snelson82/132b92632bb4cdd5190979b03dedab2a to your computer and use it in GitHub Desktop.
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
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