Action to run multiple elixir CI commands. In order:
mix deps.get
mix compile --warnings-as-errors
mix format --check-formatted
mix deps.unlock --check-unused
mix credo
mix dialyzer
mix test
The MIX_ENV
variable to run the commands in.
Default: test
The MIX_ENV
variable to run tests in.
Default: test
Wether to run mix test or not.
Default: True
Flags to add to append to the mix test
command (e.g. --only tag
or --no-start
, etc.)
Default: ''
The directory to work on.
Default: .
Wether to run mix release and upload artifact or not.
Default: False
The name of the uploaded release.
Default: release
Wether to upload the artifact or not.
Default: False
Suffix to add to the build cache key Default: ""
Suffix to add to the plt cache key Default: ""
If false it won't retrieve cache from other restore keys Default: "True"
the compile options parameter
Default: --warnings-as-errors
- name: Run elixir CI
uses: airnity/elixir-ci-action@v4
with:
mix-env: dev
working-directory: "./myApp"
release: "True"
build-cache-key-suffix: "test"
plt-restore-cache: "False"