This Action for Mix enables arbitrary actions with this mix
command-line client.
The default MIX_ENV
is "dev"
, so override it as needed.
An example workflow to run mix test
and mix format --check-formatted
is as follows:
workflow "Tests & Formatting" {
on = "push"
resolves = ["Test", "Check Formatting"]
}
# Convenience workflow for `mix deps.get`
action "Get Deps" {
uses = "jclem/action-mix/[email protected]"
}
# Convenience workflow for `mix test`
action "Test" {
uses = "jclem/action-mix/[email protected]"
needs = "Get Deps"
}
action "Check Formatting" {
uses = "jclem/[email protected]"
needs = "Get Deps"
args = "format --check-formatted"
}