juhalehtonen / action-mix

GitHub Actions for Elixir Mix

Home Page:https://github.com/marketplace/actions/run-elixir-mix-commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Action for Mix

This Action for Mix enables arbitrary actions with this mix command-line client.

The default MIX_ENV is "dev", so override it as needed.

Usage

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/deps.get@v1.3.3"
}

# Convenience workflow for `mix test`
action "Test" {
    uses = "jclem/action-mix/test@v1.3.3"
    needs = "Get Deps"
}

action "Check Formatting" {
    uses = "jclem/action-mix@v1.3.3"
    needs = "Get Deps"
    args = "format --check-formatted"
}

About

GitHub Actions for Elixir Mix

https://github.com/marketplace/actions/run-elixir-mix-commands

License:MIT License


Languages

Language:Dockerfile 95.1%Language:Shell 4.9%