Skip to content

Commit

Permalink
Merge pull request #10 from straw-hat-team/add-unused-deps
Browse files Browse the repository at this point in the history
feat: add unused deps
  • Loading branch information
yordis authored Nov 10, 2024
2 parents 716d27a + d7326f3 commit ec11c30
Showing 1 changed file with 40 additions and 19 deletions.
59 changes: 40 additions & 19 deletions .github/workflows/elixir-quality-assurance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}
Expand All @@ -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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-type: ${{ inputs.version-type }}

dialyzer:
name: Dialyzer
Expand Down

0 comments on commit ec11c30

Please sign in to comment.