Skip to content

Fix CI for 1.20

Fix CI for 1.20 #54

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
env:
MIX_ENV: test
strategy:
matrix:
include:
- elixir: "1.14.1"
otp: "25.0"
testArgs: "--exclude=lts_only"
- elixir: "1.16.0"
otp: "26.2"
testArgs: "--exclude=lts_only"
- elixir: "1.18.4"
otp: "27.3"
testArgs: "--exclude=lts_only"
- elixir: "1.19.0"
otp: "28.1"
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: Unit tests
run: mix test.unit ${{ matrix.testArgs }}
- name: Property-based tests
# Only on LTS for now since the take_random algorithm changed in 1.17.
# TODO unskip this once we only support more recent versions.
if: "${{ matrix.testArgs == '' }}"
run: PROP_TEST_RUNTIME=30000 mix test.prop ${{ matrix.testArgs }}
format:
runs-on: ubuntu-latest
name: Format (Elixir ${{matrix.elixir}})
strategy:
matrix:
include:
- elixir: "1.18.4"
otp: "27.3"
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