2023-08-10 08:30:20 +00:00
|
|
|
defmodule MashConfig do
|
2023-08-10 09:14:45 +00:00
|
|
|
@behaviour Mash.Config
|
|
|
|
|
2023-08-10 08:30:20 +00:00
|
|
|
import Mash.Helpers
|
|
|
|
|
|
|
|
def jobs do
|
|
|
|
[
|
2023-08-10 09:48:57 +00:00
|
|
|
%{
|
|
|
|
name: :restore_cache,
|
|
|
|
run: restore_cache()
|
|
|
|
},
|
2023-08-10 08:30:20 +00:00
|
|
|
%{
|
|
|
|
name: :test,
|
2023-08-10 09:48:57 +00:00
|
|
|
needs: [:restore_cache],
|
2023-08-10 08:30:20 +00:00
|
|
|
run: mix("test")
|
|
|
|
},
|
2023-08-10 09:48:57 +00:00
|
|
|
%{
|
|
|
|
name: :credo,
|
|
|
|
needs: [:restore_cache],
|
|
|
|
run: mix("credo", ["--all"])
|
|
|
|
},
|
|
|
|
%{
|
|
|
|
name: :save_cache,
|
|
|
|
needs: [:test],
|
|
|
|
run: save_cache()
|
|
|
|
}
|
2023-08-10 08:30:20 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|