Skip to content

Implements full interface and documentation #5

Implements full interface and documentation

Implements full interface and documentation #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test (Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}${{ matrix.unlock && ' / unlock' || '' }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir: "1.17.0"
otp: "25.3"
unlock: false
- elixir: "1.19.5"
otp: "28.5"
unlock: false
- elixir: "1.19.5"
otp: "28.5"
unlock: true
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache deps and build
uses: actions/cache@v5
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Check formatting
run: mix format --check-formatted
- name: Unlock deps
if: matrix.unlock
run: mix deps.unlock --all
- name: Install dependencies
run: mix deps.get
- name: Compile with warnings as errors
run: mix compile --warnings-as-errors
- name: Run Credo
run: mix credo --strict
- name: Run tests
run: mix test