Skip to content

Improve docs and type specs #30

Improve docs and type specs

Improve docs and type specs #30

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
repository_dispatch:
jobs:
test:
env:
MIX_ENV: test
strategy:
matrix:
include:
- elixir: 1.7
otp: 20
runs-on: ubuntu-20.04
- elixir: 1.11
otp: 23
runs-on: ubuntu-20.04
- elixir: 1.15
otp: 26
runs-on: ubuntu-22.04
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/cache/restore@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('/mix.lock') }}
- run: mix deps.get
- uses: actions/cache/save@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('/mix.lock') }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.elixir >= 1.7 }}
- run: mix format --check-formatted
if: ${{ matrix.elixir >= 1.11 }}
- run: mix compile --warnings-as-errors
- run: mix test
if: ${{ matrix.elixir < 1.15 }}
- run: mix test
if: ${{ matrix.elixir >= 1.15 }}