Skip to content

Nitrino/actions-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for Elixir Mix

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

Usage

An example workflow to run mix test is as follows:

workflow "Credo & Sobelow & Check Formatting" {
  on = "push"
  resolves = [
    "Credo",
    "Formatter",
    "Sobelow",
  ]
}

action "Get Dependencies" {
  uses = "nitrino/actions@master"
  args = "deps.get"
}

action "Credo" {
  uses = "nitrino/actions@master"
  args = "credo --strict"
  needs = ["Get Dependencies"]
}

action "Formatter" {
  uses = "nitrino/actions@master"
  args = "format --check-formatted"
  needs = ["Get Dependencies"]
}

action "Sobelow" {
  uses = "nitrino/actions@master"
  needs = ["Get Dependencies"]
  args = "sobelow --config"
}

Note that by default, $MIX_ENV is set to "test", to prevent several times compilation.

Based by jclem/actions