Skip to content

Commit

Permalink
Split up linting jobs on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkreeftmeijer committed Jun 19, 2024
1 parent ca3b47f commit e37b9ba
Showing 1 changed file with 44 additions and 7 deletions.
51 changes: 44 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,50 @@ on:
branches: [ "actions" ]

jobs:
lint:
lint_format:
runs-on: ubuntu-latest
steps:
- name: Set up Erlang and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: master
elixir-version: main
- name: Checkout code
uses: actions/checkout@v4
- name: Check code formatting
run: mix format --check-formatted

lint_credo:
runs-on: ubuntu-latest
steps:
- name: Set up Erlang and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: master
elixir-version: main
- name: Checkout code
uses: actions/checkout@v4
- name: Get dependencies
run: mix deps.get
- name: Analyze code with Credo
run: mix credo --strict

lint_compile:
runs-on: ubuntu-latest
steps:
- name: Set up Erlang and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: master
elixir-version: main
- name: Checkout code
uses: actions/checkout@v4
- name: Get dependencies
run: mix deps.get
- name: Check for compilation errors
run: mix compile --warnings-as-errors

lint_dialyzer:
runs-on: ubuntu-latest
steps:
- name: Set up Erlang and Elixir
Expand All @@ -23,12 +66,6 @@ jobs:
uses: actions/checkout@v4
- name: Get dependencies
run: mix deps.get
- name: Check for compilation errors
run: mix compile --warnings-as-errors
- name: Check code formatting
run: mix format --check-formatted
- name: Analyze code with Credo
run: mix credo --strict
- name: Analyze code with Dialyzer
run: mix dialyzer --format github

Expand Down

0 comments on commit e37b9ba

Please sign in to comment.