Skip to content

Commit

Permalink
Add code linting and analysis to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkreeftmeijer committed Jun 18, 2024
1 parent cf8acae commit 77d097d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ on:
branches: [ "actions" ]

jobs:
lint:
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
- 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 dialyzer

test:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 77d097d

Please sign in to comment.