Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #45

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ permissions:
contents: read

jobs:
mix_test_old:
name: Mix test (Elixir ${{matrix.elixir}} | OTP ${{matrix.otp}})
tests:
name: Tests (Elixir ${{matrix.elixir}} | OTP ${{matrix.otp}})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -55,8 +55,28 @@ jobs:
- run: mix compile --warnings-as-errors
if: matrix.warnings_as_errors
- run: mix test
lint:
name: Format & credo
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 26
elixir-version: 1.17.x
- name: Install Dependencies
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get --only test
- name: Check Formatting
run: mix format --check-formatted
- name: Run credo
run: mix credo --strict
dialyzer:
name: Latest checks (format, credo, dialyzer)
name: Dialyzer
runs-on: ubuntu-latest
env:
MIX_ENV: test
Expand All @@ -65,7 +85,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: 26
elixir-version: 1.16.x
elixir-version: 1.17.x
- name: Install Dependencies
run: |
mix local.hex --force
Expand All @@ -79,9 +99,5 @@ jobs:
~/.mix
_build
key: dialyzer
- name: Check Formatting
run: mix format --check-formatted
- name: Run credo
run: mix credo --strict
- name: Run dialyzer
run: mix dialyzer --halt-exit-status
Loading