Skip to content

typespecs

typespecs #209

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
main:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.17'
erlang: '27.0'
lint: true
- elixir: '1.16'
erlang: '26.2.5'
- elixir: '1.15'
erlang: '25.3.2.12'
- elixir: '1.14'
erlang: '24.3.4.17'
- elixir: '1.13'
erlang: '23.3.4.20'
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: ${{ ! matrix.lint }}
with:
path: |
_build
deps
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
- uses: actions/cache@v4
with:
# Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-plt
path: priv/plts
if: ${{ matrix.lint }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.erlang }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get --check-locked
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix compile --warnings-as-errors
- run: mix dialyzer --format github
if: ${{ matrix.lint }}
- run: mix test