diff --git a/.github/workflows/elixir-quality-assurance.yml b/.github/workflows/elixir-quality-assurance.yml index 514a379..c4686bd 100644 --- a/.github/workflows/elixir-quality-assurance.yml +++ b/.github/workflows/elixir-quality-assurance.yml @@ -39,8 +39,29 @@ on: type: boolean required: false default: true + check-unused-deps-enabled: + description: Enables the check unused dependencies job + type: boolean + required: false + default: true jobs: + check-unused-deps: + name: Unused Dependencies + if: ${{ inputs.check-unused-deps-enabled }} + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Elixir + uses: straw-hat-team/github-actions-workflows/elixir/setup@v1.6.1 + with: + elixir-version: ${{ inputs.elixir-version }} + otp-version: ${{ inputs.otp-version }} + version-type: ${{ inputs.version-type }} + - name: Check unused dependencies + run: mix deps.unlock --check-unused + compilation-warning: name: Compilation Warnings if: ${{ inputs.compilation-warning-enabled }} @@ -59,37 +80,37 @@ jobs: if: ${{ inputs.testing-enabled }} runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - uses: straw-hat-team/github-actions-workflows/elixir/test@v1.6.2 - with: - elixir-version: ${{ inputs.elixir-version }} - otp-version: ${{ inputs.otp-version }} - version-type: ${{ inputs.version-type }} + - name: Checkout code + uses: actions/checkout@v2 + - uses: straw-hat-team/github-actions-workflows/elixir/test@v1.6.2 + with: + elixir-version: ${{ inputs.elixir-version }} + otp-version: ${{ inputs.otp-version }} + version-type: ${{ inputs.version-type }} format: name: Format if: ${{ inputs.formatter-enabled }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: straw-hat-team/github-actions-workflows/elixir/format@v1.6.2 - with: - elixir-version: ${{ inputs.elixir-version }} - otp-version: ${{ inputs.otp-version }} - version-type: ${{ inputs.version-type }} + - uses: actions/checkout@v2 + - uses: straw-hat-team/github-actions-workflows/elixir/format@v1.6.2 + with: + elixir-version: ${{ inputs.elixir-version }} + otp-version: ${{ inputs.otp-version }} + version-type: ${{ inputs.version-type }} credo: name: Credo if: ${{ inputs.credo-enabled }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: straw-hat-team/github-actions-workflows/elixir/credo@v1.6.2 - with: - elixir-version: ${{ inputs.elixir-version }} - otp-version: ${{ inputs.otp-version }} - version-type: ${{ inputs.version-type }} + - uses: actions/checkout@v2 + - uses: straw-hat-team/github-actions-workflows/elixir/credo@v1.6.2 + with: + elixir-version: ${{ inputs.elixir-version }} + otp-version: ${{ inputs.otp-version }} + version-type: ${{ inputs.version-type }} dialyzer: name: Dialyzer