Skip to content

Remove hacks to support old versions #435

Remove hacks to support old versions

Remove hacks to support old versions #435

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
# cannot use latest to check older OTP versions, see:
# https://github.com/erlef/setup-beam/issues/161#issuecomment-1336129218
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
include:
- elixir: "1.12"
otp: "23.3"
- elixir: "1.14"
otp: "25.3"
- elixir: "1.15"
otp: "26.0"
- elixir: "1.16"
otp: "26.2"
- elixir: "1.17.0-rc.0"
otp: "27.0"
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
# TODO add dialyzer?
- name: Unit tests
run: mix test.unit
- name: Property-based tests
run: PROP_TEST_RUNTIME=30000 mix test.prop
format:
runs-on: ubuntu-latest
name: Format (Elixir ${{matrix.elixir}})
strategy:
matrix:
include:
- elixir: "1.16"
otp: "26.2"
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 format
run: mix format --check-formatted