Enables Quality Assurance tools
This workflow is a suit of development tool setup for Elixir projects that leverage other actions such as:
- elixir/credo for linting check.
- elixir/dialyzer for typespec check.
- elixir/format for formatting check.
- elixir/test for testing check.
- elixir/compilation-warnings for compilation warning check.
You can disable these actions by changing the setting the workflow. Please check the workflow input documentation.
- Create a new GitHub Workflow (ex:
.github/workflows/ci.yml
) if you don't have one already. - Add the following this workflow to your workflow, here is a final example:
name: Elixir Quality Assurance
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
quality-assurance:
uses: straw-hat-team/github-actions-workflows/.github/workflows/elixir-quality-assurance.yml@master
with:
elixir-version: '1.11' # optional, fallback to use .tool-versions
otp-version: '22.3' # optional, fallback to use .tool-versions
version-type: 'loose' # optional, fallback to strict
testing-enabled: true # or false to disable it
formatter-enabled: true
credo-enabled: true
dialyzer-enabled: true
compilation-warning-enabled: true