Skip to content

Merge pull request #108 from minibikini/drop-old-elixir-support #218

Merge pull request #108 from minibikini/drop-old-elixir-support

Merge pull request #108 from minibikini/drop-old-elixir-support #218

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
name: mix test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
strategy:
fail-fast: false
matrix:
otp: [25.x, 26.x, 27.x]
elixir: [1.18.x]
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
- name: Compile
run: mix compile --warnings-as-errors
- name: Run Tests
run: mix test --trace
format:
runs-on: ubuntu-latest
container:
image: elixir:1.18-slim
steps:
- uses: actions/checkout@v4.2.2
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
- name: Check Format
run: mix format --check-formatted --dry-run
credo:
runs-on: ubuntu-latest
container:
image: elixir:1.18-slim
steps:
- uses: actions/checkout@v4.2.2
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
- name: Run Credo
run: mix credo --strict