Skip to content

Fix compilation warnings and test a wider range of Elixir versions #118

Fix compilation warnings and test a wider range of Elixir versions

Fix compilation warnings and test a wider range of Elixir versions #118

Workflow file for this run

name: Test suite
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Test (${{matrix.elixir}}/${{matrix.otp}})
runs-on: ubuntu-latest
strategy:
matrix:
otp: [24.x, 25.x, 26.x]
elixir: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x]
exclude:
- otp: 26.x
elixir: 1.13.x
- otp: 26.x
elixir: 1.12.x
- otp: 26.x
elixir: 1.11.x
- otp: 25.x
elixir: 1.12.x
- otp: 25.x
elixir: 1.11.x
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install Dependencies
run: mix deps.get
- name: Check format
if: matrix.check_format
run: mix format --check-formatted
- name: Run Tests
run: mix test