Skip to content

CI

CI #113

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
include:
- elixir: "1.14.1"
otp: "25.3"
testArgs: "--exclude=lts_only"
- elixir: "1.14.5"
otp: "26.0"
testArgs: "--exclude=lts_only"
- elixir: "1.15.4"
otp: "26.0"
testArgs: "--exclude=lts_only"
- elixir: "1.16.0"
otp: "26.0"
testArgs: "--exclude=lts_only"
- elixir: "1.17.0-rc.0"
otp: "27.0"
testArgs: ""
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: mix deps.get
- name: Check compile warnings
run: mix compile --warnings-as-errors
- name: Check format
run: mix format --check-formatted
# TODO add dialyzer?
- name: Unit tests
run: mix test ${{ matrix.testArgs }}